Bookmarklets
A bookmarklet is a bookmark stored in a web browser that contains JavaScript commands that add new features to the browser. All of the Bookmarklets here are goofy and fun!
Kickass 2.0
this is my personal favorite. turns your tab into a game like asteroids. controls are arrow keys and space bar.
script: javascript:var KICKASSVERSION=’2.0′;var s = document.createElement(‘script’);s.type=’text/javascript’;document.body.appendChild(s);s.src=’//hi.kickassapp.com/kickass.js’;void(0);
3D Webpage
this one is a visual effect that makes the screen 3d
script: javascript:(function(){var js=document.body.appendChild(document.createElement(“script”));js.onerror=function(){alert(“Sorry, the script could not be loaded.”)};js.src=”https://rawgit.com/Krazete/bookmarklets/master/tri.js”})();
Snake game:
this bookmarklet allows you to play the classic game snake in your webpage
script: javascript:Q=64;m=b=Q*Q;a=[P=l=u=d=p=S=w=0];u=89;f=(h=j=t=(b+Q)/2)-1;(B=(D=document).body).appendChild(x=D.createElement(“p”));(X=x.style).position=”fixed”;X.left=X.top=0;X.background=”#FFF”;x.innerHTML=”<p></p><canvas>”;v=(s=x.childNodes)[0];(s=s[1]).width=s.height=5*Q;c=s.getContext(“2d”); onkeydown=onblur=F=function(e,g){g?a[f]?(w+=m,f=Math.random(l+=8)*(R=Q-2)*R|(u=0),F(f+=Q+1+2*(f/R|0),g)):F(f):0>e?(l?–l:(y=t,t=a[t]-2,F(y)),S+=(w*=0.8)/4,m=999/(u++ +10),a[h+=[-1,-Q,1,Q][d=p]]?B.removeChild(x,alert(“Game Over”)):(F(h),F(e,j=h),v.innerHTML=P?(setTimeout(F,50,e,0),S|0):”Press P”)):-e?(y=(a[e]=e<Q|e>=Q*Q-Q|!(e%Q)|e%Q==Q-1|2*(e==h))+(e==f),e==h&&(a[j]=2+h),c.fillStyle=”hsl(“+99*!a[e]+”,”+2*m+”%,”+50*y+”%)”,c.fillRect(e%Q*5,5*(e/Q|0),5,5)):isNaN(y=e.keyCode-37)|43==y?(P=y&&!P)&&F(-1): p=!P|y&-4|!(y^2^d)?p:y;return!1};for(;–b;F(b));void F(-1);
Color:
allows you to drag and drop colors to paint the page.
script: javascript:(function(){var el=document.createElement(‘script’);el.type=’text/javascript’;el.src=’https://rawgit.com/ApoorvSaxena/colordrop/master/dist/production.min.js’;el.onerror=function(){alert(“Looks like the Content Security Policy directive is blocking the use of bookmarklets\n\nYou can copy and paste the content of:\n\n\”https://rawgit.com/ApoorvSaxena/colordrop/master/dist/production.min.js\”\n\ninto your console instead\n\n(link is in console already)”);console.log(“https://rawgit.com/ApoorvSaxena/colordrop/master/dist/production.min.js”);};document.getElementsByTagName(‘body’)[0].appendChild(el);})();
Kickass 2.0
this is my personal favorite. turns your tab into a game like asteroids. controls are arrow keys and space bar.
script: javascript:var KICKASSVERSION=’2.0′;var s = document.createElement(‘script’);s.type=’text/javascript’;document.body.appendChild(s);s.src=’//hi.kickassapp.com/kickass.js’;void(0);
3D Webpage
this one is a visual effect that makes the screen 3d
script: javascript:(function(){var js=document.body.appendChild(document.createElement(“script”));js.onerror=function(){alert(“Sorry, the script could not be loaded.”)};js.src=”https://rawgit.com/Krazete/bookmarklets/master/tri.js”})();
Snake game:
this bookmarklet allows you to play the classic game snake in your webpage
script: javascript:Q=64;m=b=Q*Q;a=[P=l=u=d=p=S=w=0];u=89;f=(h=j=t=(b+Q)/2)-1;(B=(D=document).body).appendChild(x=D.createElement(“p”));(X=x.style).position=”fixed”;X.left=X.top=0;X.background=”#FFF”;x.innerHTML=”<p></p><canvas>”;v=(s=x.childNodes)[0];(s=s[1]).width=s.height=5*Q;c=s.getContext(“2d”); onkeydown=onblur=F=function(e,g){g?a[f]?(w+=m,f=Math.random(l+=8)*(R=Q-2)*R|(u=0),F(f+=Q+1+2*(f/R|0),g)):F(f):0>e?(l?–l:(y=t,t=a[t]-2,F(y)),S+=(w*=0.8)/4,m=999/(u++ +10),a[h+=[-1,-Q,1,Q][d=p]]?B.removeChild(x,alert(“Game Over”)):(F(h),F(e,j=h),v.innerHTML=P?(setTimeout(F,50,e,0),S|0):”Press P”)):-e?(y=(a[e]=e<Q|e>=Q*Q-Q|!(e%Q)|e%Q==Q-1|2*(e==h))+(e==f),e==h&&(a[j]=2+h),c.fillStyle=”hsl(“+99*!a[e]+”,”+2*m+”%,”+50*y+”%)”,c.fillRect(e%Q*5,5*(e/Q|0),5,5)):isNaN(y=e.keyCode-37)|43==y?(P=y&&!P)&&F(-1): p=!P|y&-4|!(y^2^d)?p:y;return!1};for(;–b;F(b));void F(-1);
Color:
allows you to drag and drop colors to paint the page.
script: javascript:(function(){var el=document.createElement(‘script’);el.type=’text/javascript’;el.src=’https://rawgit.com/ApoorvSaxena/colordrop/master/dist/production.min.js’;el.onerror=function(){alert(“Looks like the Content Security Policy directive is blocking the use of bookmarklets\n\nYou can copy and paste the content of:\n\n\”https://rawgit.com/ApoorvSaxena/colordrop/master/dist/production.min.js\”\n\ninto your console instead\n\n(link is in console already)”);console.log(“https://rawgit.com/ApoorvSaxena/colordrop/master/dist/production.min.js”);};document.getElementsByTagName(‘body’)[0].appendChild(el);})();