Last active
July 24, 2019 05:54
-
-
Save UnforeseenOcean/a47647e32ccb40e126217a539a6e3ba2 to your computer and use it in GitHub Desktop.
Another variation of browser-fuckup.js -- shrink everything
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
var anim="@keyframes shrink{0%{transform:scale(1,1);}100%{transform:scale(0,0);opacity:0;}}",head=document.head||document.getElementsByTagName('head')[0],style=document.createElement('style');head.appendChild(style);var e=document.getElementsByTagName('*');style.type='text/css';if(style.styleSheet){style.styleSheet.cssText = anim;}else{style.appendChild(document.createTextNode(anim));}for(var i=0;i<e.length;i++){e[i].setAttribute("style","animation:shrink 10s 1 linear forwards;transform-origin:center center;")}; |
Update: Now nothing stands between you and the destruction of the entire page
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Limitations: This doesn't work on pages with no DIV elements.