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?
How to block auto refresh on permitted websites
How to block auto refresh on permitted websites
Last edited by asd on Sat Jan 02, 2010 10:31 am, edited 1 time in total.
Mozilla/5.0 (Windows; U; Windows NT 6.0; it; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Re: How to block auto refresh on permitted websites
There is the answer: http://forums.informaction.com/viewtopi ... 78&p=11851
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.6) Gecko/20091206 Lightning/1.0b1 SeaMonkey/2.0.1
Re: How to block auto refresh on permitted websites
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.Mc wrote:There is the answer: http://forums.informaction.com/viewtopi ... 78&p=11851
Mozilla/5.0 (Windows; U; Windows NT 6.0; it; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
-
- Ambassador
- Posts: 1586
- Joined: Fri Mar 20, 2009 4:47 am
- Location: Colorado, USA
Re: How to block auto refresh on permitted websites
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.asd wrote:So the subject: there's a way to deny auto refresh on permitted websites using noscript?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: How to block auto refresh on permitted websites
Surrogate Scripts are your friends.
Open about:config and create the following string preferences:
noscript.surrogate.antirefresh.replacement
noscript.surrogate.antirefresh.sources
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);}
Code: Select all
@www.corriere.it www.repubblica.it
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Re: How to block auto refresh on permitted websites
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".Giorgio Maone wrote:Surrogate Scripts are your friends.
Open about:config and create the following string preferences:
[...]
[/code]
Thank you

Mozilla/5.0 (Windows; U; Windows NT 6.0; it; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)