View Single Post
Old 01-03-2004, 07:01 PM   #7 (permalink)
Realizm
Insane
 
Location: A fuzzy cloud.
A script similar to this that could be put into a right click menu (Open Link OUt of Hotmail)
or something that could scan a single link when right clicked and fix would be good, seems like this could be done..

I found the below "bookmarklet" at this site:

http://www.squarefree.com/bookmarklets/pagelinks.html

I can't read this very well, but from the looks of things, https: and ftp: links can't be fixed, but it works with HTTP.
I just click it on the bar and poof the redirects are gone.. it's nice.. going to see if I can put it into the contextual menu.
Code:
javascript:(function(){var%20k,x,t,i,j;%20for(k=0;x=document.links[k];k++){t=x.href.replace(/[%25]3A/ig,':').replace(/[%25]2f/ig,'/');i=t.lastIndexOf('http://');if(i%3E0){t=t.substring(i);j=t.indexOf('&');if(j%3E0)t=t.substring(0,j);x.href=unescape(t)}%20else%20if%20(x.onmouseover&&x.onmouseout){x.onmouseover();%20if%20(window.status.indexOf('://')!=-1)x.href=window.status;%20x.onmouseout();%20}%20x.onmouseover=null;%20x.onmouseout=null;%20}})();
Sorry about the lengthy script code, I didn't want to put any line breaks in for fear of breaking it..

Last edited by Realizm; 01-03-2004 at 07:23 PM..
Realizm is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62