Return to Snippet

Revision: 28543
at July 9, 2010 08:33 by adriantry


Updated Code
javascript:var%20d=document,w=window,f='http://hootsuite.com/twitter/bookmark-tool-v2?',l=d.location,e=encodeURIComponent,p='address='+e(l.href)+'&title='+e(d.title),u=f+p;a=function()%7Bif(!w.open(u,'t','scrollbars=0,toolbar=0,location=0,resizable=0,status=0,width=550,height=330'))l.href=u;%7D;if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();void(0);

Revision: 28542
at July 9, 2010 08:21 by adriantry


Initial Code
javascript:try%7BtumblrBookmarklet()%7Dcatch(e)%7Btry%7Bvar%20t=function()%7Bvar%20d=document,n='tumblr_'+Math.round(Math.random()*Math.pow(10,17));window.open('http://assets.tumblr.com/loading.htm',n,'toolbar=no,resizable=no,location=no,menubar=no,status=no,width=450,height='+(430+(/Chrome/.test(navigator.userAgent)?53:0)));var%20r=d.createElement('form');r.setAttribute('method','post');r.setAttribute('action','http://www.tumblr.com/share');r.setAttribute('target',n);var%20a=function(b,c)%7Bvar%20f=d.createElement('input');f.setAttribute('type','hidden');f.setAttribute('name',b);f.setAttribute('value',c);r.appendChild(f)%7D;if(d.documentElement.innerHTML.length%3C500000)%7Ba('page_content',d.documentElement.innerHTML)%7Dvar%20s=window.getSelection?window.getSelection():(d.getSelection?d.getSelection():(d.selection?d.selection.createRange().text:''));if(s)%7Ba('s',s)%7Da('u',location.href);a('t',d.title);a('v',3);d.body.appendChild(r);setTimeout(function()%7Br.submit()%7D,0)%7D;if(/Firefox/.test(navigator.userAgent))setTimeout(t,0);else%7Bt()%7D%7Dcatch(e)%7Balert('Sorry,%20an%20error%20has%20occurred.%20%20Upgrading%20your%20browser%20may%20help.')%7D%7Dvoid(0)

Initial URL


Initial Description
This bookmarklet was recently removed from Hootsuite's site, but it seems prematurely: their Chrome extension doesn't work reliably, and other browsers miss out entirely.

Initial Title
Hootsuite's ow.ly Hootlet Bookmarklet

Initial Tags


Initial Language
JavaScript