Always nice to see people really customizing
But please use page "macrolanguage
2" - without number it's the old version for KM1.1 :cool:
"Force" Reload is okay and should work 100%, although for almost all uses the normal one loads a bit faster, taking the unaffected parts from cache (am reloading myself all the time after toggling manually). But keep the "force" if cache and speed is not critical thanks to a modern machine and connection.
ToggleJC{
macros(pref_ToggleJavaScript);
macros(pref_ToggleCookies);
id(ID_NAV_RELOAD);
}
Just some tips for macro help in general, also if other users may come across this:
This and more available commands for macros, like CommandIDs:
http://kmeleonbrowser.org/wiki/EndUserDocs
http://kmeleonbrowser.org/wiki/CommandIds
Also quite handy: Edit > Configuration > Commands List
For quick offline use from the Help menu James has created the macro "LocalDocs", which I love. It also works if the server is down, which seems to happen 'occasionally' here... :cool:
Couldn't live without this, invaluable for finding most macro syntax errors:
Tools > ErrorConsole (with KMM-button switched ON)
chrome://console2/content/console2.xul
(its button in toolbars.cfg is labeled "javascript console", that name has mislead me badly for years)
And extremely helpful also an editor with syntax-highlighting for macros, although wouldn't have helped for THIS case.
http://kmeleonbrowser.org/forum/read.php?9,109335,129077#msg-129077
PS: Since KM75 most commands have become duplicated, Dorian prefers the more direct ones without "ID", but thankfully still lets the traditional "ID" equivalents work too.
Just to add to the confusion, thanks to Mozilla there are now various JS-toggle methods, additional to the global pref also alternatives toggling only the current page (without reload?), but am still not familiar with those myself, being stuck on KM1.6 for the online machine.