Making Use Of Some Bookmarklets

Jul. 1st, 2008 By Mark O'Neill

At heart I am a lazy computer user. When I want to do something on the computer, I either use keyboard shortcuts or I use a bookmarklet to achieve it. The last thing I want to do is go clicking around aimlessly for ages and ages……(zzzzz…..)

But as the web has evolved, some bookmarklets have become redundant as their use has become integrated into the web browser. For example, a bookmarklet to subscribe to a RSS feed is no longer necessary because in Firefox, you can now subscribe to a RSS feed by clicking the orange RSS logo in the Firefox URL address bar instead.

Here are a small selection of the bookmarklets that I have gradually built up. To use them yourself, just drag the link with your mouse up to your browser bookmark bar. If you have the programming know-how, you can also re-write them to make them do whatever you want them to do (such as the Gmail This! one).

Usful Bookmarklets

    Add to Mixx - this will add the selected URL to Mixx.com
    Share on FriendFeed -
    this will allow you to share something (a URL, a photo, whatever, on Friendfeed).
    View in Google Earth
    - if you highlight an address and then click this bookmarklet, Google Earth opens and automatically goes to the address you highlighted.
    Delete Twitter Direct Messages - for this one to work, you need to be on your Twitter Direct Messages page. Then press this bookmarklet. A small box will then show up in your Twitter sidebar asking you if you want to delete your direct messages. Say yes and your direct messages will be deleted one by one. It’s very fast.
    Add Note in Google Reader - this allows you to highlight a piece of text in a website post, add your own note to it then add it to Google Reader for your contacts to read.
    Gmail This! - allows you to send Gmail emails without having to open Gmail first. The main purpose of Gmail This! is to email the weblink of the page you’re on but you can easily use it to send any email to anyone by opening it up and removing the weblink.
    Save as PDF - if you click on this one, the page you are on will be turned into a PDF file which you can then download and save to your computer. It even makes the links on the page clickable.
    del.icio.us Backlinks - this one is invaluable for SEO people and for bloggers obsessed with tracking who is linking to their posts. Just go to a page and click on this bookmarklet. You’ll then be taken to the Del.icio.us page for that webpage.
    Show Stumbleupon Reviews - this one is useful if you are using a computer that doesn’t have the Stumbleupon toolbar installed. It quite simply takes you to the Stumbleupon review page for that webpage.
    Post to Del.icio.us - as the bookmarklet says, it posts the webpage to your Del.icio.us account.
    TinyURL This! - clicking this one will turn the page link into a TinyURL

What bookmarklets do you use on a regular basis? Post them in the comments!

(By) Mark O’Neill is a blogger, professional freelance writer and the editor of Make Use Of. He drinks countless cups of tea a day, checks out countless websites a day - and uses keyboard shortcuts and bookmarklets as much as possible. Check out his personal blog at BetterThanTherapy.net

Enjoyed the article? Subscribe to MakeUseOf to get daily updates on new cool websites and programs in your email for free. You'll also get free printable cheat sheets to your favorite programs

Your Email:

Add MakeUseOf to:



19 Comments Add Comment
2008-07-01 10:16:50
Mary

Clear Ads

javascript:function C(o){o.removeNode(true);}function A(d){for(j=0;t=['iframe','embed','object','marquee'][j];++j){o=d.getElementsByTagName(t);for(i=o.length-1;i>=0;i–)C(o[i]);}g=d.images;for(k=g.length-1;k>=0;k–)if({’88×31′:1,’110×50′:1,’120×60′:1,’120×90′:1,’120×240′:1,’120×600′:1,’125×125′:1,’125×400′:1,’125×600′:1,’160×600′:1,’300×250′:1,’336×280′:1,’425×600′:1,’440×40′:1,’468×60′:1,’728×90′:1,’750×100′:1}[g[k].width+’x'+g[k].height])C(g[k]);}A(document);for(f=0;z=frames[f];++f)A(z.document);

2008-07-01 10:29:41

so does this clear ALL the ads on a webpage?

2008-07-01 11:09:57

Here’s a couple I like when working on websites:

Validate Markup
javascript:void(location='http://validator.w3.org/check?uri='+escape(location))

Force Screen size:
javascript:resizeTo(640,480)
javascript:resizeTo(800,600)
javascript:resizeTo(1024,768)

2008-07-01 11:12:21

I was planning to write an article about this, but since you already did it, I guess I can just share some of my favorites. However there are so many bookmarklets out there that I might as well make write another article. I just hope our readers don’t get bored of these awesome bookmarklets…

Handy Bookmarklet to hide all images on a page (including ads)
javascript:for(jK6bvW=0;jK6bvW

Be able to edit the webpage you’re on:
javascript:document.body.contentEditable%20=%20'true';%20document.designMode='on';%20void%200

Calculator: Do math in your browser (this one is for the really really lazy)
javascript:expr=prompt('Formula...(eg:%20%202*3%20+%207/8%20)','');if(expr){with(Math){evl=parseFloat(eval(expr))};if(isNaN(evl)){alert('Not%20a%20number!')}else{void(prompt('Result:',evl))}}else{void(null)}

I have a few more, but I’ll probably shove them into another article about bookmarklets. That’s only if you readers don’t mind seeing more of these useful bookmarklets of course.

2008-07-01 11:21:04

Exactly. There’s so many that we can write a dozen articles on the subject. Bookmarklets are so useful that if we pick the right ones, then it’s a very useful subject to do.

2008-07-01 14:43:13
Jason Baird

Does anyone have a bookmarklet for adding information to Google Notebook?

2008-07-01 15:30:14

I use a bookmarklet to add blogs and forum threads that I’ve commented on to CommentFul, which watches my threads/comments to see if anyone’s posted after my comment.

So after commenting, I use their bookmarklet to add it to my WatchList, then subscribe to my WatchList’s RSS feed so I’ll know when someone’s commented after mine.

Here’s the page with the bookmarklet.
http://commentful.blogflux.com/usage/

2008-07-01 16:29:55
John

Deletes cookies only for the page that you are on

javascript:(function(){C=document.cookie.split(";%20");for(d="."+location.host;d;d=(""+d).substr(1).match(/\..*$/))for(sl=0;sl<2;++sl)for(p="/"+location.pathname;p;p=p.substring(0,p.lastIndexOf('/')))for(i%20in%20C)if(c=C[i]){document.cookie=c+”;%20domain=”+d.slice(sl)+”;%20path=”+p.slice(1)+”/”+”;%20expires=”+new%20Date((new%20Date).getTime()-1e11).toGMTString()}})()

Shows passwords on page that are displayed as dots

javascript:(function(){var%20s,F,j,f,i;%20s%20=%20"";%20F%20=%20document.forms;%20for(j=0;%20j%3CF.length;%20++j)%20{%20f%20=%20F[j];%20for%20(i=0;%20i%3Cf.length;%20++i)%20{%20if%20(f[i].type.toLowerCase()%20==%20″password”)%20s%20+=%20f[i].value%20+%20″/n”;%20}%20}%20if%20(s)%20alert(”Passwords%20in%20forms%20on%20this%20page:/n/n”%20+%20s);%20else%20alert(”There%20are%20no%20passwords%20in%20forms%20on%20this%20page.”);})();

2008-07-01 17:36:42
Dave P

If you store user IDs and passwords in your browser, Remember Password removes some parameters which prevent your browser from saving these on some web sites.

javascript:(function(){var%20ca,cea,cs,df,dfe,i,j,x,y;function%20n(i,what){return%20i+%22%20%22+what+((i==1)?%22%22:%22s%22)}ca=cea=cs=0;df=document.forms;for(i=0;i<df.length;++i){x=df[i];dfe=x.elements;if(x.onsubmit){x.onsubmit=%22%22;++cs;}if(x.attributes[%22autocomplete%22]){x.attributes[%22autocomplete%22].value=%22on%22;++ca;}for(j=0;j<dfe.length;++j){y=dfe[j];if(y.attributes[%22autocomplete%22]){y.attributes[%22autocomplete%22].value=%22on%22;++cea;}}}alert(%22Removed%20autocomplete=off%20from%20%22+n(ca,%22form%22)+%22%20and%20from%20%22+n(cea,%22form%20element%22)+%22,%20and%20removed%20onsubmit%20from%20%22+n(cs,%22form%22)+%22.%20After%20you%20type%20your%20password%20and%20submit%20the%20form,%20the%20browser%20will%20offer%20to%20remember%20your%20password.%22)})();

2008-07-01 18:04:14

Hi guys,

I just created a site to store your bookmarks online called simplebookmarksand I “makeuseof” a bookmarklet to easily save such bookmarks.
Check out the demo.

2008-07-01 21:02:49

kwout.com is a brilliant one I use all the time

javascript:(function(){var%20b=document.body,e=document.documentElement,h=100,s=self,y=0,w=window;if(s.pageYOffset)y=s.pageYOffset;else%20if(e%20&&%20e.scrollTop)y=e.scrollTop;else%20if(b)y=b.scrollTop;if(w.innerHeight%20&&%20w.scrollMaxY)h=w.innerHeight+w.scrollMaxY;else%20if(b.scrollHeight%20>%20b.offsetHeight)h=b.scrollHeight;else%20h=b.offsetHeight;location.href='http://kwout.com/grab?address='+encodeURIComponent(location.href)+'&scroll='+(y/h);})();

2008-07-02 00:51:45

I use the bookmarklet provided by toread.cc site so that I can e-mail any page to my gmail account. Thus I don’t just have bookmarks, but the entire text saved and searchable!
http://toread.cc/

2008-07-02 02:56:10

To translate any webpage to english (or spanish or german or japanese …. etc)
http://translate.google.com/translate_buttons

2008-07-02 16:15:59
José duarte

Translate any page (language autodetected) to Spanish (Google Translate)

javascript:location.href=”http://64.233.179.104/translate_c?hl=es&sl=auto&tl=es&u=”+escape(location.href);

Translate any page (language autodetected) to English (Google Translate)

javascript:location.href=”http://64.233.179.104/translate_c?hl=en&sl=auto&tl=en&u=”+escape(location.href);

2008-07-02 08:16:08
an onymous

View Javascripts in a page:
javascript:s=document.getElementsByTagName('SCRIPT');%20d=window.open().document;%20/*140681*/d.open();d.close();%20b=d.body;%20function%20trim(s){return%20s.replace(/^\s*\n/,%20'').replace(/\s*$/,%20'');%20};%20function%20add(h){b.appendChild(h);}%20function%20makeTag(t){return%20document.createElement(t);}%20function%20makeText(tag,text){t=makeTag(tag);t.appendChild(document.createTextNode(text));%20return%20t;}%20add(makeText('style',%20'iframe{width:100%;height:18em;border:1px%20solid;'));%20add(makeText('h3',%20d.title='Scripts%20in%20'%20+%20location.href));%20for(i=0;%20i<s.length;%20++i)%20{%20if%20(s[i].src)%20{%20add(makeText(’h4′,’script%20src=%22′%20+%20s[i].src%20+%20′%22′));%20iframe=makeTag(’iframe’);%20iframe.src=s[i].src;%20add(iframe);%20}%20else%20{%20add(makeText(’h4′,’Inline%20script’));%20add(makeText(’pre’,%20trim(s[i].innerHTML)));%20}%20}%20void%200
hide visited links
javascript:(function(){var%20newSS,%20styles=':visited%20{display:%20none}';%20if(document.createStyleSheet)%20{%20document.createStyleSheet(%22javascript:'%22+styles+%22'%22);%20}%20else%20{%20newSS=document.createElement('link');%20newSS.rel='stylesheet';%20newSS.href='data:text/css,'+escape(styles);%20document.documentElement.childNodes[0].appendChild(newSS);%20}%20})();

2008-07-04 11:51:44

download directly from wuapi
javascript:if%20(document.getElementById(’download-video’)==null%20&&%20!!(document.location.href.match(/http:\/\/[a-zA-Z\.]*wuapi\.com\/video/)))%20{var%20v_mp4_path=’http://wuapidownload.com.ar/proceso.php?video=’+document.location.href;%20var%20div_embed=document.getElementById(’useraction’);div_embed.innerHTML=div_embed.innerHTML+’WuapiDownload‘;}void(0);

2008-07-04 16:49:52

Clip to Evernote:

javascript:(function(){EN_CLIP_HOST=’http://www.evernote.com’;try{var%20x=document.createElement(’SCRIPT’);x.type=’text/javascript’;x.src=EN_CLIP_HOST+’/public/bookmarkClipper.js?’+(new%20Date().getTime()/100000);document.getElementsByTagName(’head’)[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+’/clip.action?url=’+encodeURIComponent(location.href)+’&title=’+encodeURIComponent(document.title);}})();

Digg:

javascript:submiturl=’http://digg.com/submit?phase=2&url=’+location.href+’&title=’+encodeURIComponent(document.title);%20if(navigator.userAgent.indexOf(’MSIE’)%20<%200){%20selection=document.getSelection();if(selection){submiturl+=’&bodytext=’+encodeURIComponent(document.getSelection());%20}}%20window.open(submiturl)()

getASIN (helps for making Amazon Affiliate links):

javascript:var%20re%3D%2F%5C%2F%28%5B0-9A-Z%5D%7B10%2C10%7D%29%5B%5C%2F%5C%3F%5D%3F%2Fi%3B%20var%20m%20%3D%20location.toString%28%29.match%28re%29%3B%20if%20%28m%20%21%3D%20null%29%20%7B%20location%20%3D%20%27http%3A%2F%2Fassociates.amazon.com%2Fgp%2Fassociates%2Fnetwork%2Fbuild-links%2Findividual%2Fget-html.html%3Fasin%3D%27%2Bm%5B1%5D%2B%27%26linkType%3Dstatic-text%27%3B%20%7D%20else%20%7Balert%28%22Could%20not%20parse%20ASIN%22%29%3B%20%7D

GmailThis (updated version):

javascript:popw=”;Q=”;sendTo=”;mySubject=”;myBody=”;x=document;y=window;if(x.selection)%20{Q=x.selection.createRange().text;}%20else%20if%20(y.getSelection)%20{Q=y.getSelection();}%20else%20if%20(x.getSelection)%20{Q=x.getSelection();}myString=’%s’;if(myString.match(/%[s]/)){mySubject=document.title;myBody=Q+’\n\n’+location.href;}else%20{myArray=myString.split(/\|/);mySubject=myArray[0];if%20(mySubject.match(/@\w+/)){mySubject=document.title+’%20′+’%20-%20′+mySubject;}if(mySubject==”){mySubject=document.title;}if%20(myArray[1]%20&&%20myArray[1]%20!=”){if(Q%20!=”){myBody%20=%20myArray[1]%20+%20′\n\n’%20+%20′\”%20+%20Q%20+%20′\”%20+%20′\n\n’%20+%20location.href;}else{myBody%20=%20myArray[1]%20+%20′\n\n’%20+%20location.href;}}else{myBody%20=%20Q%20+%20′\n\n’%20+%20location.href;}if%20(myArray[2]){sendTo%20=%20myArray[2];}}popw%20=%20y.open(’https://mail.google.com/mail?view=cm&ui=1&tf=0&to=’%20+%20escape(sendTo)%20+%20′&su=’+%20escape(mySubject)%20+%20′&body=’%20+%20escape(myBody),’gmailForm’,’scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes’);if%20(!document.all)%20T%20=%20setTimeout(’popw.focus()’,50);void(0);

WPComment (lets you click one button and automatically fill-in WP website comment forms):

javascript:try%20{document.getElementById(’author’).value=’YOUR NAME HERE’;%20document.getElementById(’email’).value=’YOUR EMAIL HERE’;%20document.getElementById(’url’).value=’YOUR URL HERE’;%20void(null)}%20catch(err){};try{document.getElementById(’uname’).value=’Your%20Name’;%20document.getElementById(’uurl’).value=’blog.iamntz.com’;%20void(null)}%20catch(err){};

2008-07-05 02:14:03
Johnny

Does anyone know of a bookmarklet that will paste the current date and time into whatever text field you’re typing into?

2009-05-26 12:22:28

The friend recommended recently a good free web hosting, all the same the best service among the free!

Reply

You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.