tl;dr -- is this possible to pause or stop all running js on the page, using greasemonkey?
here is the situation: i hate how, when watching videos on fb, they stutter. i am 99% sure the stutter is caused by the excessive amounts of js running in the background (providing all the realtime page updates)
here is what i want to do: create some code that will pause all js execution (i will attach it to a button or possibly autodetect when a video is playing) -- and then later resume execution (after video is done)(this part is not essential, i can always reload the page)
Now i know i can use an addon like noscript to pause-unpause but it would be nice if i could have something automagic (and alot more slimline)
defineMagicFunction
in Opera, but (sorry @BrockAdams) i think you cannot pause javascript execution in correct and reliable way, if there is any non-trivial code - c69 2012-04-05 14:51
No, there is no easy general-purpose Greasemonkey solution to stop or block the execution of a web page's scripts. Greasemonkey can add, but not remove, javascript. Opera's way beefier User Javascript system can do both.
/ Greasemonkey co-maintainer