Create a 'TouchGraph this site' bookmarklet
Feb 14, '05 10:22:00AM
Contributed by: Anonymous
I modified the Technorati this! bookmarklet to create the following button. Add a bookmark called Touchgraph this to your favorite browser, and paste the following code into the address field:
javascript:w=window;d=document;var%20u;s='';if%20(d.selection)%20%7Bs=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.php?start='+escape(s);void(1);
Now to see the TouchGraph Google chart for the page you're on, just click the toolbar button.
[robg adds: I'd never heard of TouchGraph before; it seems to be a tool to help you map the relationship between items. In the case of their Google tool, I believe it's tracking links to the site of interest, and mapping the relationship between all those sites. For instance, here's macosxhints.com. They also have a tool to look at titles on Amazon as well as LiveJournal sites.
Sorry for the scrolling box above, but it seemed the best way to handle this very very long bookmarklet (which cannot have line breaks embedded in it). Just click-and-drag in the box to highlight all the text, copy, create a new bookmark, and paste that as the location. And if anyone can provide a more technical overview of what the Google TouchGraph is showing, please do so!]
Comments (6)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20050209190048965