There are some news websites which automatically and periodically refresh their page just in order to show the user more advertisement. If you are watching a video, all the buffered stream is gone when it refreshes the page. Or, when you are reading a text, it is really disturbing to have a page refreshment.
I believe that most of these evil people use Javascript to refresh the page. Is there any extension or userscript for solving this. The tool must prevent any page refreshment action which is attempted without user interaction (like clicking a submit button, or pressing F5). I'm using both Chrome and Firefox, I need solutions for both of these browsers.