I'm writing a chrome extension, and I want to be able to disable JavaScript based on a condition. So the page loads, a bunch of JavaScript runs, and if my condition is met then I'd like to disable all JavaScript. Is that possible? We would need to terminate/stop the currently running scripts.
I don't care too much if my chrome extension's script is stopped/disabled as well. But it would be nice if I could keep just that javascript running.
Thanks