About the removal of the t.co surrogate

Ask for help about NoScript, no registration needed to post
Kalman

About the removal of the t.co surrogate

Post by Kalman »

From the changelog: "Removed t.co surrogate, since Twitter implemented a NOSCRIPT fallback".
t.co is failing from me in the same way before the script surrogate was introduced, I have forbidden META redirections inside NOSCRIPT elements, is there a workaround I could use?
Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: About the removal of the t.co surrogate

Post by Giorgio Maone »

Kalman wrote:t.co is failing from me in the same way before the script surrogate was introduced, I have forbidden META redirections inside NOSCRIPT elements
By "failing" do you just mean you need to press the [Follow] button, as expected?
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Kalman

Re: About the removal of the t.co surrogate

Post by Kalman »

This is what I get clicking on a t.co shortened URL:
Image
Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: About the removal of the t.co surrogate

Post by Giorgio Maone »

Kalman wrote:This is what I get clicking on a t.co shortened URL:
Image
Again, does the META refresh notification with the Follow button show up? If not, could you please check whether META redirection notifications is enabled in the Notifications panel?
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Kalman

Re: About the removal of the t.co surrogate

Post by Kalman »

It wasn't, now it is and I get the follow button.
Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 Iceweasel/6.0.2
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: About the removal of the t.co surrogate

Post by Giorgio Maone »

Kalman wrote:It wasn't, now it is and I get the follow button.
If you want to skip this passage, you can either disable the "Forbid META" option, or allow t.co, or restore a surrogate like the following:

noscript.surrogate.t_co.replacement

Code: Select all

location.replace(document.getElementsByTagName("meta")[0].content.match(/\bhttp.*/)[0])
noscript.surrogate.t_co.sources

Code: Select all

t.co
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Post Reply