I have found this site with firefox shortcuts. There is mentioned shortcut Ctrl+shift+F9 but it doesn't work for me. Can anybody help? (I need shortcut for quick switching to mode without javascript during debugging of my site). thanks for any hint

EDIT: I need to stop executing javascript on current opened page. Previous changes on page made by javascript will stay preserved

link|improve this question
You can install the Preferences Toolbar add-on and that gives you a JavaScript checkbox. – Pointy Dec 28 '11 at 18:08
would a plugin like QuickJava suffice – Tom Ingram Dec 28 '11 at 18:08
noscript seems to have ctrl+shift+\ to temporarily disable – Tom Ingram Dec 28 '11 at 18:12
Preferences Toolbar and Quick Java disables javascript after reloading page, not immadiately. Maybe I should emphasize it in problem description. Noscript disables all previous changes made by javascript. so no one solution is suitable for me. I resolved it only programatically, I created HTML element on my site, I attached an onclick event to it and in this event is run comman "debugger();". This command pauses executing javascript on my site. But some shortcut to stop javascript would be better. – tomas.teicher Dec 29 '11 at 8:10
feedback

migrated from stackoverflow.com Dec 28 '11 at 20:41

This question came from our site for professional and enthusiast programmers.

1 Answer

install the keyconfig extension, then add a key with this code:

var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(
   Components.interfaces.nsIPrefBranch);
prefs.setBoolPref("javascript.enabled", !prefs.getBoolPref("javascript.enabled"));

this toggles firefox's "javascript enabled" preference. i've tested it on firefox 9 on ubuntu lucid, and it works.

more keyconfig examples: http://snarfed.org/firefox_keyconfig_extension

link|improve this answer
related: stackoverflow.com/questions/6613524/… – ryan Dec 29 '11 at 16:39
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.