| View previous topic :: View next topic |
| Author |
Message |
stonedaze
Cadet

 Joined: Jun 23, 2008 Posts: 3 Location: USA
|
Posted: Mon Jun 23, 2008 11:57 pm Post subject: Prevent auto-refresh on Drudge Report |
|
|
Does anyone know a new filter or how to modify the anti-refresh filter to prevent the drudge report from refreshing? The original anti-refresh filter used to work fine, but for the past year, it hasn't been working anymore and Drudge refreshes itself about every 180 seconds.
I've tried the JD filter and another one posted by Grypen that lets you choose over 10 seconds or under an hour (or modify it), but that's not working either.
Thanks
|
|
| Back to top |
|
 |
k027
Special Response Team Guest Forums Host

 Joined: Aug 25, 2003 Posts: 8517
|
Posted: Thu Jun 26, 2008 7:26 am Post subject: |
|
|
The "Stop JavaScript Redirects" web page filter appears to prevent the Drudge Report web page from auto-refreshing.
|
|
| Back to top |
|
 |
stonedaze
Cadet

 Joined: Jun 23, 2008 Posts: 3 Location: USA
|
Posted: Fri Jun 27, 2008 9:13 pm Post subject: |
|
|
Thanks...that did seem to work, but unfortunately I don't use that filter because I like redirects to work on most of the pages I visit.
I know the code that's used on Drudge is this one but I don't have a clue what I'm doing when it comes to html.
<script type="text/javascript">
var timer = setInterval("autoRefresh()", 1000 * 60 * 3);
function autoRefresh(){self.location.reload(true);}
I'll keep trying to figure it out.
|
|
| Back to top |
|
 |
z12
Captain

 Joined: Jul 17, 2002 Posts: 385 Location: USA
|
Posted: Fri Jun 27, 2008 10:22 pm Post subject: |
|
|
You could add a url match to the "Stop JavaScript Redirects" filter.
Or you could use site specific filter such as:
| Code: |
[Patterns]
Name = "No Drudge Auto Refresh"
Active = TRUE
URL = "www.drudgereport.com"
Bounds = "$NEST(<script,</script >)"
Limit = 256
Match = "*autoRefresh\(*"
Replace = "<?nako removed refresh script ?>$STOP()"
|
HTH
z12
|
|
| Back to top |
|
 |
stonedaze
Cadet

 Joined: Jun 23, 2008 Posts: 3 Location: USA
|
Posted: Fri Jun 27, 2008 11:01 pm Post subject: |
|
|
I'll give that one a try, too. I was just about to post a slight change I made to the Java Redirect filter when I read your post. This one also seems to work.
Name = "Anti-Java-Refresh"
Active = TRUE
Limit = 30
Match = "self.location(=|.)\1"
Replace = ".NoLocation\1"
|
|
| Back to top |
|
 |
|
|