Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create a 'TouchGraph this site' bookmarklet' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a 'TouchGraph this site' bookmarklet
Authored by: Tony in Ottawa on Mar 11, '05 09:12:31PM
OK here it is: the Touchgraph:Link button (my original post was indeed the Google:related operator): Again, when pasting into the bookmark's address field, make sure that there are no line breaks in the code. Here's the Touchgraph reference URL
javascript:w=window;d=document;var%20u;s='';if%20(d.selection)%20%7
Bs=d.selection.createRange().text;%7D%20else%20if%20(d.getSelection!=u)
%20%7Bs=d.getSelection();%7D%20else%20if%20(w.getSelection!=u)%20%7Bs=
w.getSelection();%7D%20if%20(s.length%3C2)%7Bif(String(w.location).substring(0,6)
=='about:')%7Bs=prompt('Touchgraph%20Realtime%20Display%20for:',s);
%7Delse%7Bs=w.location;%7D%7Dif%20(s!=null)%20w.location='http%3A
//www.touchgraph.com/TGGoogleBrowser_Backlinks.php?start='+escape(s);void(1);


[ Reply to This | # ]
Create a 'TouchGraph this site' bookmarklet
Authored by: Tony in Ottawa on Apr 23, '05 12:59:56PM
Well, Safari 1.3/10.3.9 broke this. So,here's the replacement code, simplified, that continues to work: Google related:
javascript:location.href='http://www.touchgraph.com/TGGoogleBrowser.php?
start='+escape(location.host)+escape(location.pathname);


Google link:
javascript:location.href='http://www.touchgraph.com/TGGoogleBrowser_Backlinks.php
?start='+escape(location.host)+escape(location.pathname);


[ Reply to This | # ]