bookmarklets

I thought I’d share these as I find them incredibly useful for social sharing especially.

Click and drag the bold header text onto your favourites bar.

Stumble This!

javascript:document.location.href='http://www.stumbleupon.com/submit?url='+document.URL+'&title='+document.title.replace(/%20/g,'+');

Springpad

Saves either a text selection or bookmarks the URL

javascript:(function()%7BSP_HOST%3D'http%3A%2F%2Fspringpadit.com'%3Btry%7Bvar%20x%3Ddocument.createElement('SCRIPT')%3Bx.type%3D'text%2Fjavascript'%3Bx.src%3DSP_HOST%2B'%2Fpublic%2Fclipper_inline.js%3F'%2B(new%20Date().getTime()%2F100000)%3Bdocument.getElementsByTagName('head')%5B0%5D.appendChild(x)%3B%7Dcatch(e)%7Blocation.href%3DSP_HOST%2B'%2Fclip.action%3Furl%3D'%2BencodeURIComponent(location.href)%2B'%26title%3D'%2BencodeURIComponent(document.title)%3B%7D%7D)()%3B

Share on Twitter

javascript:(function(){window.twttr=window.twttr||{};var D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,E;if(C>A){G=Math.round((C/2)-(A/2))}window.twttr.shareWin=window.open('http://twitter.com/share','','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');E=F.createElement('script');E.src='http://platform.twitter.com/bookmarklets/share.js?v=1';F.getElementsByTagName('head')[0].appendChild(E)}());

Share on Google+

javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='https://m.google.com/app/plus/x/',l=d.location,e=encodeURIComponent,u=f+'?content='+e(d.title)+e(' - ')+e(l.href)+'&v=compose&hideloc=1';a=function(){if(!w.open(u,'gplusshare','toolbar=0,resizable=1,scrollbars=1,status=1,width=450,height=295'))l.href=u;};if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0); else a();void(0)

Share on Facebook

javascript:var d=document,f='https://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1312735668&u='+e(l.href)+'&t='+e(d.title);1;try{if (!/^(.*.)?facebook.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z) {a=function() {if (!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if (/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)

Share on Tumblr

javascript:var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://www.tumblr.com/share',l=d.location,e=encodeURIComponent,p='?v=3&u='+e(l.href)%20+'&t='+e(d.title)%20+'&s='+e(s),u=f+p;try%7Bif(!/%5E(.*%5C.)?tumblr%5B%5E.%5D*$/.test(l.host))throw(0);tstbklt();%7Dcatch(z)%7Ba%20=function()%7Bif(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=450,height=430'))l.href=u;%7D;if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();%7Dvoid(0)

Note to Google Reader

javascript:var%20b=document.body;var%20GR________bookmarklet_domain='http://www.google.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/link-bookmarklet.js');void(b.appendChild(z));}else{}

Find Similar Pages

javascript:(function(){ document.location.href='http://www.google.com/search?q=related:'+escape(document.location.href) })();

Send it with GMail

javascript:(function(){ document.location.href='http://mail.google.com/mail/?view=cm&fs=1&su='+escape(document.title)+'%20(link)&body='+escape(document.location.href) })();

Google Notebook This

javascript:(function(){var w=window;var d=document;var g=w.open('about:blank','gnotesWin','location=0,menubar=0,scrollbars=0,status=0,toolbar=0,width=300,height=300,resizable');var s=d.createElement('script');s.setAttribute('src','http://www.google.com/notebook/bookmarkletPoster?zx='+(new Date()).valueOf());d.body.appendChild(s);w.setTimeout(function(){w.blur();g.focus();}, 100)}).call({});

Google definition

Finds the definition of text selection.

javascript:Qr=document.getSelection();if(!Qr){void(Qr=prompt('What%20definition%20do%20you%20want%20to%20search%20for%20on%20Google?',''))};if(Qr)location.href='http://google.com/search?query=define:'+escape(Qr)+'&num=10&sa='

Goo.gl This Page!

Gives you a short url for the current page

javascript:void(location.href=%27http://digitalinspiration.com/tools/googl/?u=%27+encodeURIComponent(location.href))

Google Site Search

Opens a site:url of the page you’re viewing

javascript:location.href='http://www.google.com/search?q=site:'+location.host

Search Wikipedia

Search the Wikipedia with current selection of text or enter text in selection box

javascript:function se(d) {return d.selection ? d.selection.createRange().text : d.getSelection()} s = se(document); for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter%20search%20terms%20for%20Wikipedia',''); open('http://en.wikipedia.org' + (s ? '/w/index.php?title=Special:Search&search=' + encodeURIComponent(s) : '')).focus();

Validate HTML

javascript:location.href='http://validator.w3.org/check?uri='%20+%20document.location.href%20+%20%20'&doctype=Inline';

Validate CSS

javascript:javascript:location.href='http://jigsaw.w3.org/css-validator/validator?uri='%20+%20document.location.href;

Strip CSS

Removes all style sheets on current URL

javascript:var%20i=0;if(document.styleSheets.length%3E0)%7Bcs=!document.styleSheets%5B0%5D.disabled;for(i=0;i%3Cdocument.styleSheets.length;i++)document.styleSheets%5Bi%5D.disabled=cs;%7D;void(true);