Star Wars
this will make most webpages resemble the starwars opening crawl
javascript:(function(c){var a=c.body.style;c.documentElement.style.background=a.background="black";a.color="yellow";a.height=a.width="100%";a.position="fixed";a.overflowY="scroll";a.top="-15%";a.webkitTransform=a.MozTransform=a.transform="matrix3d(1,0,0,0,0,1,0,-0.0015,0,0,1,0,0,0,0,1)";for(var a=c.body.children,b=0;b<a.length;b++)"SCRIPT"!=a[b].nodeName&&(a[b].style.overflowY="scroll",a[b].style.maxHeight="100%");var b=new Audio();b.src="https://archive.org/download/StarWarsThemeSongByJohnWilliams/Star%20Wars%20Theme%20Song%20By%20John%20Williams.mp3";var f=function(){for(var a,b=0;a=c.body.children[b];b++)"SCRIPT"!=a.nodeName&&(a.scrollTop+=2);setTimeout(f,50)};setTimeout(f,1000);b.load();b.play()})(document)
Snake
this will allow you to play the classic game snake in browser from any tab you like
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)
Proxy
Once it pulls up a popup simply input the url of the site you want to go to.
javascript: const selection = prompt("https://books4ever.cyou"); const tab = window.open('about:blank', '_blank'); const iframe = tab.document.createElement('iframe'); const stl = iframe.style; stl.border = stl.outline = 'none'; stl.width = '100vw'; stl.height = '100vh'; stl.position = 'fixed'; stl.left = stl.right = stl.top = stl.bottom = '0'; iframe.src = selection; tab.document.body.appendChild(iframe); tab.document.body.appendChild("Tunnel"); launch.style.background = '#008b8b'; launch.innerHTML = "launched";
font bomb: blows up webpage
javascript:(function(){var js=document.body.appendChild(document.createElement('script'));js.onerror=function(){alert('Sorry, the script could not be loaded.')};js.src='https://fontbomb.ilex.ca/js/main.js'})();
Apend Iframe into site
javascript:var url = prompt('What site do you want to embed into '+location.href+'?%27);var%20prefix%20=%20%27https://%27;%20if%20(url.substr(0,%20prefix.length)%20!==%20prefix)%20{%20url%20=%20prefix%20+%20url;%20}%20var%20ifra=document.createElement(%27iframe%27);ifra.src=url;ifra.setAttribute(%27height%27,%27770%27);ifra.setAttribute(%27width%27,%271365%27);void(document.body.appendChild(ifra));
3d layers -adds layers to webpages
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'})();
Mouse light- puts your mouse in a spotlight
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/mouselight.js'})();
Ultimate Tic Tac Toe
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/tic.js'})();
edit on
javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0
Spawn Frogs
javascript:(function() { function createFrog() { const img = document.createElement("img"); img.src = "https://media4.giphy.com/media/OD8Ihvdu4wsr15D27M/200w.gif?cid=82a1493b7nmfjga3xo3cqrwkpnv7buq9gi01fxqmz8fd5vku&rid=200w.gif&ct=s"; img.style.position = "absolute"; img.style.top = Math.floor(Math.random() * window.innerHeight) + "px"; img.style.left = Math.floor(Math.random() * window.innerWidth) + "px"; img.classList.add("frog"); document.body.appendChild(img); const jumpUp = Math.floor(Math.random() * 50) + 50; const jumpDown = Math.floor(Math.random() * 50) + 50; const spin = Math.floor(Math.random() * 360); const jumpDuration = Math.floor(Math.random() * 4) + 4; img.animate([ { transform: `translate(0, 0) rotate(0)` }, { transform: `translate(0px, -${jumpUp}px) rotate(${spin}deg)` }, { transform: `translate(0px, ${jumpDown}px) rotate(-${spin}deg)` }, { transform: `translate(0, 0) rotate(0)` } ], { duration: jumpDuration * 500, iterations: Infinity }); } function init() { const pond = document.createElement("div"); pond.style.width = "100%"; pond.style.height = "100%"; pond.style.position = "fixed"; pond.style.top = "0"; pond.style.left = "0"; pond.style.zIndex = "99999"; pond.addEventListener("click", createFrog); document.body.appendChild(pond); } init();})();
Spawn a single frog
javascript:(function() { var frog = document.createElement('img'); frog.src = 'https://i.redd.it/jrh0xsp60vt71.png'; frog.style.position = 'fixed'; frog.style.zIndex = '9999'; var startX = Math.floor(Math.random() * window.innerWidth); var startY = Math.floor(Math.random() * window.innerHeight); frog.style.left = startX + 'px'; frog.style.top = startY + 'px'; function hop() { var direction = Math.floor(Math.random() * 360); var distance = Math.floor(Math.random() * 100) + 50; var radian = direction * Math.PI / 180; var endX = startX + distance * Math.cos(radian); var endY = startY + distance * Math.sin(radian); if (endX < 0) endX = 0; if (endX > window.innerWidth - frog.width) endX = window.innerWidth - frog.width; if (endY < 0) endY = 0; if (endY > window.innerHeight - frog.height) endY = window.innerHeight - frog.height; var duration = distance / 100 * 500; frog.style.transition = 'left ' + duration + 'ms, top ' + duration + 'ms'; frog.style.left = endX + 'px'; frog.style.top = endY + 'px'; startX = endX; startY = endY; setTimeout(hop, duration + 1000); } hop(); document.body.appendChild(frog);})();
Autoclicker
javascript:(function(x,y){if(!window.click){window.click=!0,document.body.style.cursor='crosshair';var cps=prompt('Autoclicker CPS: (Under 200 recommended)');if(!cps||isNaN(cps)?(alert(%27You entered something wrong. Try running the script again.%27),end()):alert(%27Autoclicker activated at %27+cps+%27 CPS! Do [ctrl+e] to stop.%27),addEventListener(%27mousemove%27,e=>{x=e.clientX,y=e.clientY}),addEventListener(%27keydown%27,e=>{%27e%27===e.key&&e.ctrlKey&&(alert(%27Autoclicker deactivated! Click the bookmark again to reactivate!%27),end())}),window.click)var int=setInterval(function(){var e=document.elementFromPoint(x,y);e&&e.click()},1e3/cps);function end(){clearInterval(int),window.click=!1,document.body.style.cursor=%27default%27}}})()
Dot game
javascript:(function(){ const dot = (function(){ function dot(size = null, startPosX = null, startPosY = null, xDir = null, yDir = null, speed = null, color = null){ this.size = (size !== null) ? size : 150; this.minSize = 60; this.colChange = 80; this.x = (startPosX !== null) ? startPosX : Math.random() * (window.innerWidth - this.size) ; this.y = (startPosY !== null) ? startPosY : Math.random() * (window.innerHeight - this.size); this.maxX = window.innerWidth; this.maxY = window.innerHeight; this.xDir = (xDir !== null) ? xDir : 1; this.yDir = (yDir !== null) ? yDir : 1; this.speed = (speed !== null) ? speed : 1; this.shrink = 20; this.color = (color !== null) ? color : %27#70a6ff'; this.dot = document.createElement('div'); this.dot.style.width = this.dot.style.height = %60${this.size}px%60; this.dot.style.border = %601px solid ${this.color}%60; this.dot.style.backgroundColor = %60${this.color}1A%60; this.dot.style.position = 'fixed'; this.dot.style.zIndex = '99999999'; this.dot.style.top = %60${this.x}px%60; this.dot.style.left = %60${this.y}px%60; this.dot.style.borderRadius = '90px'; document.body.appendChild(this.dot); this.dot.addEventListener('mousedown', () => { this.size -= this.shrink; if (this.size > this.minSize){ this.speed += 0.3; this.dot.style.width = this.dot.style.height = %60${this.size}px%60; this.x = this.x + ((this.shrink / 2) * this.xDir); this.y = this.y + ((this.shrink / 2) * this.yDir); this.dot.style.left = %60${this.x}px%60; this.dot.style.top = %60${this.y}px%60; console.log(this.size); this.color = (this.size < this.colChange) ? '#ff0000' : this.color; this.dot.style.border = %601px solid ${this.color}%60; this.dot.style.backgroundColor = %60${this.color}1A%60; window.dotStats.dotspopped++; let newXDir = (Math.round(Math.random()) === 1) ? 1 : -1; let newYDir = (Math.round(Math.random()) === 1) ? 1 : -1; window.dots.push(new dot(this.size, this.x, this.y, newXDir, newYDir, (this.speed+(Math.random()/0.5)), this.color)); } if (this.size < this.minSize){ window.clearInterval(this.move); this.dot.remove(); } }, false); this.move = window.setInterval(() => { this.x += (this.xDir * this.speed); if (this.x >= (this.maxX - this.size))this.xDir = -1; if (this.x <= 0) this.xDir = 1; this.y += (this.yDir * this.speed); if (this.y >= (this.maxY - this.size))this.yDir = -1; if (this.y <= 0) this.yDir = 1; this.dot.style.left = %60${this.x}px%60; this.dot.style.top = %60${this.y}px%60; }, 10); } return dot; })(); if (window.dots){ window.dots.push(new dot()); window.dotStats.basedots++; } else { window.dots = [new dot()]; window.dotStats = { basedots: 1, clicks: 0, dotspopped: 0 }; window.addEventListener('mousedown', ()=> { window.dotStats.clicks++; window.updateStats(); }, false); let ds = document.createElement('div'); ds.setAttribute('id', 'dotStats'); ds.style.position = 'fixed'; ds.style.right = '0px'; ds.style.top = '0px'; ds.style.zIndex = '9999999'; ds.style.textAlign = 'right'; ds.style.padding = '20px'; ds.style.backgroundColor = '#fff'; ds.style.border = '1px solid #ccc'; ds.style.color = '#090909'; ds.style.fontFamily = 'Arial, Helvetica, sans-serif'; document.body.appendChild(ds); window.updateStats = function(){ document.getElementById('dotStats').innerHTML = %60Big dots spawned: ${window.dotStats.basedots}<br/> Dots popped: ${window.dotStats.dotspopped}<br/> Misses: ${window.dotStats.clicks - window.dotStats.dotspopped}%60; }; } window.updateStats(); })();
Rat Character
javascript:(function() { var names = ['Whiskers', 'Nibbles', 'Squeaky', 'Scamper', 'Pedro', 'Juan', 'Cortez', 'Josh', 'Jeremy', 'Baldi', 'Baldure', 'Scrumblo', 'Scrimple', 'Krillian', 'Mateo','Henri ', 'Maurice','Bear','Egg Salad','Plague Spreader']; var colors = ['brown', 'gray', 'white', 'black', 'bald', 'swaggy', 'orange', 'armored', 'fat', 'thin']; var likes = ['cheese', 'running in wheels', 'napping', 'doing war crimes', 'armed robbery', 'jumping', 'cosplay', 'shaving', 'throat singing', 'cult worship', 'revolting', 'spreading the plague']; var personalities = ['playful', 'curious', 'friendly', 'adventurous', 'shy', 'ailed by dementia', 'murderous', 'angry', 'schizophrenic', 'albanian', 'on trial for war crimes ', 'scared', 'cool', 'big', 'depressed', 'based', 'cringe']; var nameIndex = Math.floor(Math.random() * names.length); var colorIndex = Math.floor(Math.random() * colors.length); var likeIndex = Math.floor(Math.random() * likes.length); var personalityIndex = Math.floor(Math.random() * personalities.length); var ratName = names[nameIndex]; var ratColor = colors[colorIndex]; var ratLikes = likes[likeIndex]; var ratPersonality = personalities[personalityIndex]; var profile = ratName + ' is ' + ratColor + ', likes ' + ratLikes + ', and is ' + ratPersonality; alert(profile);})();
Invert site
javascript:(function(){ var css='html{-webkit-filter:invert(100%);-moz-filter:invert(100%);-o-filter:invert(100%);-ms-filter:invert(100%);filter:invert(100%);}'; var style=document.createElement('style'); if(style.styleSheet){ style.styleSheet.cssText=css; }else{ style.appendChild(document.createTextNode(css)); } document.getElementsByTagName('head')[0].appendChild(style);})();
Horror Filter
javascript:(function(){var css='html {-webkit-filter: grayscale(100%) invert(100%) contrast(200%) brightness(60%) sepia(100%);filter: grayscale(100%) invert(100%) contrast(200%) brightness(60%) sepia(100%);} img {-webkit-filter: grayscale(100%) invert(100%) contrast(200%) brightness(60%) sepia(100%);}'; var head=document.head || document.getElementsByTagName('head')[0]; var style=document.createElement('style'); style.type='text/css'; if(style.styleSheet){style.styleSheet.cssText=css;}else{style.appendChild(document.createTextNode(css));} head.appendChild(style);})();