Page 1 of 1

How to: Stop Redirects (Firefox)

Posted: Tue Feb 14, 2012 8:36 am
by Hunter27
How to: Stop Redirects (Firefox)

This will work for most sites that redirect you to other sites when you click a thumbnail or link. I don't know about you guys but I hate getting re-directed.. Anyhow, using Firefox, open the bookmarks library by clicking on Firefox>Bookmarks. Right click the "Bookmarks Toolbar" at the left and select "New Bookmark". Name it what ever you want. Fix, Remove, Whatever, and in the location field copy and paste the script below:

javascript:(function(){var k,x,t,i,j,p; for(k=0;x=document.links[k];k++){t=x.href.replace(/[%]3A/ig,':').replace(/[%]2f/ig,'/');i=t.lastIndexOf('http');if(i>0){ t=t.substring(i); j=t.indexOf('&'); if(j>0)t=t.substring(0,j); p=/https?\:\/\/[^\s]*[^.,;'%22>\s\)\]]/.exec(unescape(t)); if(p) x.href=p[0]; } else if (x.onmouseover&&x.onmouseout){x.onmouseover(); if (window.status && window.status.indexOf('://')!=-1)x.href=window.status; x.onmouseout(); } x.onmouseover=null; x.onmouseout=null; }})();

Click the "Add" button and poof your ready to go. You should have your bookmarks toolbar visible to be able to use this. Simply visit a redirecting site and click the bookmark to remove the re-directs.

If anyone has questions, comments, or other means of removing redirects please share here!