Meta refresh

Ask for help about NoScript, no registration needed to post
anthoy
Posts: 9
Joined: Sun Apr 05, 2009 3:01 pm

Meta refresh

Post by anthoy »

Can I block meta refresh element with NoScript?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Meta refresh

Post by Giorgio Maone »

NoScript blocks some meta refresh elements (those inside <noscript> elements) because they're often used to redirect users with JavaScript disabled on a silly pages just saying they must enable it.
If you want to block any meta refresh element, just open Tools|Options|Advanced|General and tick the "Warn me whenever a web site tries to redirect me" checkbox.
Otherwise, if you want to block them on per-site basis, you can use the Refresh Blocker extension.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
anthoy
Posts: 9
Joined: Sun Apr 05, 2009 3:01 pm

Re: Meta refresh

Post by anthoy »

Thanks!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
Mc

Re: Meta refresh

Post by Mc »

Giorgio Maone wrote:NoScript blocks some meta refresh elements (those inside <noscript> elements) because they're often used to redirect users with JavaScript disabled on a silly pages just saying they must enable it.
If you want to block any meta refresh element, just open Tools|Options|Advanced|General and tick the "Warn me whenever a web site tries to redirect me" checkbox.
Otherwise, if you want to block them on per-site basis, you can use the Refresh Blocker extension.
I try to block meta refresh in SM 2.0b2, which has no such setting. RefreshBlocker doesn't work, even in blacklist mode. NoRedirect works blocking redirects, but I can't block meta refresh, don't know what I do wrong or if it just doesn't work in SM.
Would ABE do it?
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Mnenhy/0.7.6.666
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Meta refresh

Post by Giorgio Maone »

Mc wrote:Would ABE do it?
Nope, unless you know the destination in advance.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Mc

Re: Meta refresh

Post by Mc »

Giorgio Maone wrote:
Mc wrote:Would ABE do it?
Nope, unless you know the destination in advance.
It's just a site refresh, no redirection.
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Mnenhy/0.7.6.666
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Meta refresh

Post by Giorgio Maone »

Mc wrote:It's just a site refresh, no redirection.
No, then.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Meta refresh

Post by therube »

Yes RefreshBlocker looks to be incompatible with SeaMonkey 2. (It says so once you install it, & then it looks to be ineffectual when you add a site to block.)

Further the Preference item accessibility.blockautorefresh (which does exist & work in FF3) does not exist or work in SeaMonkey 2 :cry:.


Sample META Refresh webpage (click the like this example link).
PS: To get refreshblocker to block that page, I placed ^.*fluffbucket in the blacklist (using FF).
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090825 SeaMonkey/1.1.18
Mc

Re: Meta refresh

Post by Mc »

therube wrote:Yes RefreshBlocker looks to be incompatible with SeaMonkey 2. (It says so once you install it, & then it looks to be ineffectual when you add a site to block.)

Further the Preference item accessibility.blockautorefresh (which does exist & work in FF3) does not exist or work in SeaMonkey 2 :cry:.


Sample META Refresh webpage (click the like this example link).
PS: To get refreshblocker to block that page, I placed ^.*fluffbucket in the blacklist (using FF).
In Fx I use just the setting which toggles accessibility.blockautorefresh to cover unknown refreshing sites. For SM exists an unconfirmed bug about that setting https://bugzilla.mozilla.org/show_bug.cgi?id=465303
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Mnenhy/0.7.6.666
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Meta refresh

Post by therube »

The Web Developer extension does work in SeaMonkey 2 & does have an options to Disable Meta Redirects (among many other things).

Image
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090825 SeaMonkey/1.1.18
Mc

Re: Meta refresh

Post by Mc »

therube wrote:The Web Developer extension does work in SeaMonkey 2 & does have an options to Disable Meta Redirects (among many other things).
Thanks therube :-) that works, a little bit weird though so I needed some time testing. Seems it always allows one refresh.
AMO doesn't list that extension for SeaMonkey, BTW
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Mnenhy/0.7.6.666
Mc

Re: Meta refresh

Post by Mc »

Mc wrote: I try to block meta refresh in SM 2.0b2, which has no such setting. RefreshBlocker doesn't work, even in blacklist mode.
Version 0.5.1 from the developer's site http://www.vakuumverpackt.de/refreshblocker/ works in SeaMonkey (after the known modifications).
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091007 Lightning/1.0pre SeaMonkey/2.0
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: Meta refresh

Post by Tom T. »

Giorgio Maone wrote:
Mc wrote:Would ABE do it?
Nope, unless you know the destination in advance.
Regarding this RFE, the only redirect that promped the RFE at this time always has destination http://www.yahoo.com.

I'd still like the feature in general, but what would the ABE rule be to prevent being redirected from mail.yahoo.com to http://www.yahoo.com upon logout of mail -- without interfering with login and navigation within mail, of course? Thanks.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
Post Reply