General
: K-Meleon Forum
General discussion about K-Meleon.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JamesD] I don't understand the injectJS function. I did not get any master list. The code runs when KM starts and returns nothing. It runs when I call from menu and just returns part of the code. [code] _Snippet_RunCode { $_Snipper_JS_return = injectJS( function a_je_to() { var ajetoprefs=Components.classes['@mozilla.org/preferences-service;1'] .getService(Components.interfaces.nsIPrefService); alert(ajetoprefs.getBranch('kmeleon.toolband.').getChildList('', {})); } ); alert($_Snipper_JS_return, "Return from injectJS()", INFO); } _Snippet_BuildMenu { # add another option to Favorites menu setmenu("F&avorites",macro,"Snippet Testing","_Snippet_RunCode",4); } $OnInit=$OnInit."_Snippet_BuildMenu;"; $macroModules=$macroModules."Snippet;"; [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development