3 ms·
So I went poking around, and the first result that came up for Chrome was Quick Javascript Switcher [0]. Unfortunately, it doesn't work like Opera, because it o
by Terr_ 11y ago
So I went poking around, and the first result that came up for Chrome was Quick Javascript Switcher [0]. Unfortunately, it doesn't work like Opera, because it only lets you add site-tweaks that deviate from the global JS on/off setting. To change the global setting you need to keep navigating to advanced-settings dialogs.
Digging into its JS source-code, the extension calls a browser-API chromeContentSettings.javascript [1]. Now, it sounds like at one point in the past that setting was asynchronous, meaning that disabling JS before visiting a suspect page wasn't guaranteed to work anyway [2], but no recent bug-reports or docs mention it, so maybe Chrome fixed that.
Still not sure whether there's an exploitable race-condition between when the page URL is available versus when the plugin disables JS, I'm not familiar enough with the relevant events/callbacks.
[0] https://chrome.google.com/webstore/detail/quick-javascript-switcher/geddoclleiomckbhadiaipdggiiccfje?hl=en https://chrome.google.com/webstore/detail/quick-javascript-s...
[1] https://developer.chrome.com/extensions/contentSettings https://developer.chrome.com/extensions/contentSettings
[2] https://github.com/gorhill/httpswitchboard/wiki/Blocking-javascript-execution-reliably-in-Chromium-based-browsers https://github.com/gorhill/httpswitchboard/wiki/Blocking-jav...