Last active
July 24, 2019 05:53
-
-
Save UnforeseenOcean/55ec98b34b89482482136ab0b0545429 to your computer and use it in GitHub Desktop.
A variation on browser-fuckup.js -- make everything inaccessible with style
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 blow{0%{transform:scale(1,1);}99.9%{transform: scale(4,4);opacity:0;}100%{transform:scale(0,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:blow 10s 1 linear forwards;transform-origin:center center;")}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update: Now no element is safe from the destruction