anonym.to Link Remover

By Joe Biellik Last update Nov 27, 2009 — Installed 2,036 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 3 posts, 2 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Bodie Chandler User

For those with similar issues these 2 changes are the only ones I made:

instead of
if (linkx.href.indexOf("http://anonym.to/?") != -1)

change to:

if (linkx.href.indexOf("http://www.anonym.to/?") != -1)

and:

decodeURIComponent(linkx.href.substring(linkx.href.indexOf("") + 18));

to

decodeURIComponent(linkx.href.substring(linkx.href.indexOf("") + 22));

Thx for a great script!

 
Bodie Chandler User

Hi there! Nowadays it's common they use "www."anonym.to redirects aswell. So I modified the script accordingly to fit that scenario aswell:

// ==UserScript==
// @name anonym.to Link Remover
// @description Removes anonym.to redirects and links to the real URL
// @include http://*
// ==/UserScript==

// Find "http://anonym.to/?" and chop the 18 digits off
for (var i = 0; i < document.links.length; i++) {
linkx = document.links[i];
if (linkx.href.indexOf("http://www.anonym.to/?") != -1) {
linkx.href = decodeURIComponent(linkx.href.substring(linkx.href.indexOf("") + 22));
}
}

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel