Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have found this site with Firefox shortcuts. They mention a shortcut Ctrl+Shift+F9 but it doesn't work for me.

I need shortcut for quick switching to without JavaScript mode during debugging of my site.

Can anybody help?

EDIT: I need to stop executing JavaScript on the currently opened page. Previous changes on the page made by JavaScript will stay preserved.

share|improve this question

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

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

    
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 –  T I Dec 28 '11 at 18:08
    
noscript seems to have ctrl+shift+\ to temporarily disable –  T I 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
add comment

2 Answers 2

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

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

Looks like Opera browser is unbeaten here too.

In Opera, you just press two keys, sequentially: F12, j to toggle JavaScript disabled/enabled state on the current tab. Scripts are stopped immediately, you'll only need to reload page to start scripts again.

BTW, the last "true" Opera is Opera version 10.10. YMMV with newer Opera.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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