Bookmarklets
Pages: index
Bookmarklet actions
- Review Brett’s Bookmarklets for useful tools
- Review Show HN: Some Bookmarklets, I Use
Bookmarklet list
- show all images from imgur in a reddit thread
//option 1
javascript:document.ondragstart=function(){return false};dst=function(e){return (p=Math.pow)(p(e.clientX-(rc=e.target.getBoundingClientRect()).left,2)+p(e.clientY-rc.top,2),.5)};$("[href\x2a=imgur]").not($(t="[href$=jpeg],[href$=gif],[href$=png],[href$=jpg]")).each(function(){this.href+='.jpg'});void($(t).not(".EGraw").attr({'class':'EGraw',target:'blank'}).each(function(){$(this).append($('<span />').toggle(function(e){$(this).html(' [-]').next().show();return false},function(e){$(this).html(' [+]').next().hide();return false}).click()).append($('<img>').attr({src:this.href,style:'display:block;max-width:780px;height:auto',title:'Drag to resize'}).mousedown(function(e){(t=this).iw=t.width;t.d=dst(e);t.dr=false;e.preventDefault();}).mousemove(function(e){if((t=this).d){t.style.maxWidth=t.style.width=((dst(e))*t.iw/t.d)+"px";this.dr=true}}).mouseout(f=function(e){this.d=false;if(this.dr)return false}).click(f))}))
// option 2
javascript:document.ondragstart=function(){return false};dst=function(e){return (p=Math.pow)(p(e.clientX-(rc=e.target.getBoundingClientRect()).left,2)+p(e.clientY-rc.top,2),.5)};$("[href\x2a=imgur]").not($(t="[href$=jpeg],[href$=gif],[href$=png],[href$=jpg]")).each(function(){this.href+='.jpg'});void($(t).not(".EGraw,.click-gadget a,.domain a,.thumbnail").attr({'class':'%45%47%72%61%77',target:'blank'}).each(function(){$(this).append($('<span />').toggle(function(e){$(this).html(' [-]').nextAll().show();return false},function(e){$(this).html(' [+]').nextAll().hide();return false}).click()).append($('<img>').attr({src:this.href,style:'display:block;max-width:780px;height:auto',title:'Drag to resize'}).mousedown(function(e){(t=this).iw=t.width;t.d=dst(e);t.dr=false;e.preventDefault();}).mousemove(function(e){if((t=this).d){t.style.maxWidth=t.style.width=((dst(e))%2At.iw/t.d)+"px";this.dr=true}}).mouseout(f=function(e){this.d=false;if(this.dr)return false}).click(f)).append($('<span />').html('%26#8635;').click(function(e){(i=$(t=this).prev()).css({MozTransform:r='rotate('+(t.rot=(t.rot?(++t.rot):1)%4)%2A90+'deg)',WebkitTransform:r,filter:'progid:DXImageTransform.Microsoft.BasicImage(rotation='+t.rot+')',marginBottom:(m=t.rot%2?(i.attr('width')-i.attr('height'))/(1+(nie=!$.browser.msie)):0)+'px',marginTop:(m=nie%2Am)+'px',marginLeft:-m+'px',marginRight:-m+'px'});return false}))}))
- Facebook Friends Ranking
Bookmarklets containing external dependencies may introduce risk.
Review a copy of edges.js hosted on thekeesh as of 05102025.
javascript:(function(){var script=document.createElement('script');script.type='text/javascript';script.src='http://thekeesh.com/js/edges.js';document.getElementsByTagName('body')[0].appendChild(script);}())
Speed Reading Bookmarklets
- ZapRead the current website to speed read it
javascript javascript:(function(){e = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);d=open().document;d.write('<body><form action=http://zapreader.com/reader/ method=post>');f=d.forms[0];d.write('<input type=hidden name=%22PastedText%22 value=%22' + encodeURIComponent(e).replace(/ /g, %22+%22) + '%22>');f.submit();})();)
- Eyecize the current website to speed read it
javascript:(function(){_eyercize_action = 'www.eyercize.com'; __action = 'www.eyercize.com'; _eyercize_script = document.createElement('SCRIPT');_eyercize_script.type = 'text/javascript';_eyercize_script.src = 'http://www.eyercize.com/javascripts/bookmarklet.js';document.getElementsByTagName('head')[0].appendChild(_eyercize_script);})();) #js-action
- Spreed! the current website to speed read it
javascript:var sel = window.getSelection? window.getSelection() : document.getSelection? document.getSelection() : document.selection.createRange().text; sel = encodeURIComponent(sel + '');sel = sel.replace(/'/g, '_*_');newdoc = open().document;newdoc.write(%22<BODY><FORM ACTION='http://www.spreeder.com/app.php' METHOD='POST'><INPUT TYPE='hidden' NAME='passage' VALUE='%22 + sel + %22'></FORM></BODY>%22);newdoc.forms[0].submit();) #js-action