Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Chrome extension - how to turn JavaScript on/off?
    primarykey
    data
    text
    <p>Is it possible to <strong>turn JavaScript on/off with a self-made Google Chrome extension</strong>? </p> <p>For example, in Opera browser, there are simple possibilities to do that with widgets, <a href="http://operawiki.info/CustomButtons#quickprefs" rel="nofollow noreferrer" title="Opera - Quick Prefs Toggle Buttons, all with images">user-made buttons</a>, etc., but I didn't find any solutions to do that in Chrome (my first source was the <a href="http://developer.chrome.com/extensions/overview.html" rel="nofollow noreferrer" title="Google Chrome Extensions - Overview">official Google Chrome extensions' documentations</a>).</p> <p>A strange aspect is that I need JavaScript to run the extension itself...if I'm able to turn JavaScript off with an extension, can I still use JavaScript in my extension after doing it?</p> <hr> <p>Edit: </p> <p>It's already possible to do it via <a href="http://developer.chrome.com/extensions/contentSettings.html#property-javascript" rel="nofollow noreferrer" title="chrome.contentSettings.javascript">chrome.contentSettings.javascript</a>!<br> See <a href="https://github.com/maximelebreton/quick-javascript-switcher/blob/master/core.js" rel="nofollow noreferrer" title="quick-javascript-switcher / core.js">this example</a> which shows how to use it (<strong>Quick JavaScript Switcher</strong> extension, which <strong>mlb</strong> <a href="https://stackoverflow.com/a/7673539/517705" title="mlb&#39;s answer - Quick JavaScript Switcher">linked here</a>).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload