Created
May 24, 2017 22:57
-
-
Save sirdarckcat/bdc3d73c04413e0026b9de827d9af486 to your computer and use it in GitHub Desktop.
Make random screen click pretty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.oncontextmenu=window.onauxclick=window.onclick=function(e){ | |
with(document.body.appendChild(document.createElement('div'))){ | |
style.left=e.clientX+'px'; | |
style.top=e.clientY+'px'; | |
style.position='absolute'; | |
style.height='0'; | |
style.width='0'; | |
style.opacity='0.1'; | |
style.boxShadow='0 0 0 '+(Math.random()*800+5)+'px #'+Math.floor(Math.random()*0xFFFFFF).toString(16); | |
} | |
document.documentElement.style.zoom=Math.random()*5; | |
e.preventDefault(); | |
e.stopPropagation(); | |
return false; | |
} | |
</script> |
masatokinugawa
commented
May 25, 2017
zzz
aaa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment