Basically no prob, rather fun, a tiny macro that just toggles a pref.
But do you really want a toolbar button?? Have an image for it? Should it show the pressed state? Uhm, starting to turn into "work"... ;-)
Or perhaps you have the Privacy Bar visible, and it would suffice to add this toggle on a right-click menu of the javascript button? That would be a whole lot easier and shorter to code
You can already test with an existing menu, the new toggle could become a new line in that menu (or another). If you like, in toolbars.cfg add the blue text to the javascript button:
macros(pref_ToggleJavaScript)
|P&ermissions
Hmm... or this one? That's the middle part of Tools>Privacy menu, just the list of "Block"-commands:
macros(pref_ToggleJavaScript)
|_Privacy_Settings
Edited 1 time(s). Last edit at 07/04/2011 05:41AM by siria.