Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from May 11 '12 at 16:16

This question came from our site for power users of web applications.

It might not be javascript as the answer says. But if it is, you can turn off javascript for that site only. Both chrome and firefox has the feature. – Bibhas May 10 '12 at 17:33
up vote 2 down vote accepted

It's not always a JavaScript action. In most of cases it is a HTML Meta content assured by this tag:

<meta http-equiv="refresh" content="5000">

You can maybe edit it, using FireBug or a Client Side HTML editor, and delete this tag (if exists).

share|improve this answer

If it's JavaScript, notscripts and noscript will allow you to control what JavaScripts load in Chrome or Firefox. However, video may require allowing scripts to run.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .