Bookmarklets


Edit Page
javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0
Blah in Blag
javascript:var w=window,g=w.getSelection,d=document.getSelection,t=((g&&g())||(d&&d()));if(t==""){t=prompt("Blah?")};if(t){w.open('http://Blag.blag/blag/'+escape(t)+'','blah');};
Quick search
javascript:var q='intitle:"index.of" (epub|pdf|txt) -(html htm php asp aspx)',s='https://www.google.com/search?hl=en&q=',h=(new Date%9e6).toString(36),w=window,g=w.getSelection,d=document.getSelection,t=((g&&g())||(d&&d()));if(t==""){t=prompt("Search?")};if(t){window.open(s+encodeURIComponent(t+' '+q),h);};
Increment page
javascript:(function(){ var e,s; IB=1; function isDigit(c) { return ("0" <= c && c <= "9") } L = location.href; LL = L.length; for (e=LL-1; e>=0; --e) if (isDigit(L.charAt(e))) { for(s=e-1; s>=0; --s) if (!isDigit(L.charAt(s))) break; break; } ++s; if (e<0) return; oldNum = L.substring(s,e+1); newNum = "" + (parseInt(oldNum,10) + IB); while (newNum.length < oldNum.length) newNum = "0" + newNum; location.href = L.substring(0,s) + newNum + L.slice(e+1); })();
magnet maker
var t='magnet:?xt=urn:btih:'+location.pathname.split('/')[1]+'&dn='+$('.downlinks > h2 > span').html();$('.trackers > dl > dt').each(function(){t=t+'&tr='+$(this).html().replace('/announce','')});console.log(t);$('h1 > a').attr('href',t);alert(t);
Comments