Page 1 of 1
How to block auto refresh on permitted websites
Posted: Fri Jan 01, 2010 2:23 pm
by asd
Hi,
I'm bothered by the auto refresh function that you can find in some web sites like
http://www.repubblica.it/ or
http://www.corriere.it/ . You are reading and the page auto refresh and maybe even change the text you were reading...
This tip doesn't work:
http://www.mydigitallife.info/2009/07/2 ... n-firefox/
It seems that they can refresh the page using scripts, that I have to permit to read correctly the page.
So the subject: is there a way to deny auto refresh on permitted websites using noscript?
Re: How to block auto refresh on permitted websites
Posted: Fri Jan 01, 2010 2:36 pm
by Mc
Re: How to block auto refresh on permitted websites
Posted: Fri Jan 01, 2010 3:05 pm
by asd
RefreshBlocker "does not block JavaScript-based and HTTP-based redirects", that is my problem. The same with Tools|Options|Advanced|General and tick the "Warn me whenever a web site tries to redirect me" checkbox, as you can read on the link I posted.
Re: How to block auto refresh on permitted websites
Posted: Fri Jan 01, 2010 3:29 pm
by Alan Baxter
asd wrote:So the subject: there's a way to deny auto refresh on permitted websites using noscript?
I'm bothered by that too at times. RefreshBlocker and NoScript aren't sufficient to work on all problematic sites. There are GreaseMonkey solutions for some sites, such as Drudge Report, and Adblock Plus solutions for others such as the NY Times.
Re: How to block auto refresh on permitted websites
Posted: Fri Jan 01, 2010 4:32 pm
by Giorgio Maone
Surrogate Scripts are your friends.
Open
about:config and create the following string preferences:
noscript.surrogate.antirefresh.replacement
Code: Select all
window.setTimeout=function(f){return/\blocation(?:\s*\.\s*href)?\s*(?:=|\.reload)/.test(f)?-1:window.__proto__.setTimeout.apply(window,arguments);}
noscript.surrogate.antirefresh.sources
Code: Select all
@www.corriere.it www.repubblica.it
Re: How to block auto refresh on permitted websites
Posted: Sat Jan 02, 2010 10:30 am
by asd
It works flawlessly for corriere.it. For repubblica.it it works if you enable also "Warn me whenever a web site tries to redirect me".
Thank you
