Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 webapps.stackexchange.com May 11 '12 at 16:16

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

1  
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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.