Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to disable meta refresh in Google Chrome?

On pages with meta refresh, is there any way to disable meta refresh, within a Google Chrome extension?

like image 688
supercoolville Avatar asked Oct 11 '11 01:10

supercoolville


People also ask

How do I turn off meta refresh in Chrome?

Disable Auto-Refresh in Google ChromeType chrome://extensions in the URL and Navigate to Options. Go to Details and click on Extension options. Tick the option with Disable Meta Refresh elements in pages and click on Close.

How do I turn off meta refresh?

Click the Start button, type “internet options” and select Internet Options in the search results. In the Internet Properties window, click “Custom tab -> Custom level,” then in the Security Settings window, scroll down until you find “Allow META REFRESH.” Disable this option and click OK.

What is meta refresh in Chrome?

Meta refresh is a method of instructing a web browser to automatically refresh the current web page or frame after a given time interval, using an HTML meta element with the http-equiv parameter set to " refresh " and a content parameter giving the time interval in seconds.

Why does my Chrome keep auto refreshing?

By default, if it's using a lot of memory, Chrome purges the contents of some background tabs from RAM to conserve system resources. When you click back onto those tabs, the browser has to reload them because they have been erased from memory.


3 Answers

I was looking for the same kind of extension (Spanish online newspapers abuse of the meta/refresh tag), I found none, and, among other sites, I landed in this question.

So I started to analyze how this could be done. It was not simple, and needed some tricks, but I've done it.

The extension is already in Chrome Web Store, "Stop Autorefresh": https://chrome.google.com/webstore/detail/lcldcllmbokpbniijpnkpgoboadbfphb

More info, mostly in Spanish, in http://gallir.wordpress.com/2012/07/12/stop-autorefresh-evitar-la-recarga-automatica-tipica-de-los-periodicos-digitales-en-chromechromium/

From the extension description:

Implementation notes: Chrome and Chromium don't allow to disable the refresh meta tag, nor they provide an easy method for cancelling it. The extension uses a http trick. When the [unavoidable] refresh is fired, it intercepts it, checks if it's the refresh event, if so, it redirects the connection to a small script (currently en App Engine). This script just returns a 204 http status code, so the browser does not modify the content of the page, and doesn't try to refresh it again.

like image 134
gallir Avatar answered Oct 13 '22 01:10

gallir


Following on from Shluch's solution, you can create yourself a bookmark named "Stop Refresh" and set the URL to:

javascript:window.setInterval(function () {window.stop()},10) 
like image 38
Simon Dyson Avatar answered Oct 13 '22 03:10

Simon Dyson


I made a solution. It is little buggy (if you loading ajax images, I think), but It's do the job:

window.setInterval(function () {window.stop()},10)
like image 20
Shluch Avatar answered Oct 13 '22 02:10

Shluch