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=disrupted] siria when coding js inside a macro it's better to replace double quotes with one quote "=' but \" may not be interpreted properly and then breaks up the js command e.g [sub][b]# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2) # # ---------- savepagewithorgin.kmm # Dependencies : main.kmm # Resources : - # Preferences : - # Version : .1 2011_07_17 JamesD # -------------------------------------------------------------------------------- _savepagewithorgin_RunCode { #alert("savepagewithorgin is running", $URL, INFO); $_code="var x=document.body.innerHTML; document.body.innerHTML='URL: ' + document.location + '<br><hr>' +x ;document.close();"; injectJS($_code); id(ID_FILE_SAVE_AS); } _savepagewithorgin_BuildMenu { setmenu("OpenSave",macro,"Save Page w/Origin..",_savepagewithorgin_RunCode); } ## - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $OnInit=$OnInit."_savepagewithorgin_BuildMenu;"; $macroModules=$macroModules."savepagewithorgin;";[/b][/sub][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development