Skip to content

Instantly share code, notes, and snippets.

@UnforeseenOcean
Last active July 24, 2019 05:53
Show Gist options
  • Save UnforeseenOcean/55ec98b34b89482482136ab0b0545429 to your computer and use it in GitHub Desktop.
Save UnforeseenOcean/55ec98b34b89482482136ab0b0545429 to your computer and use it in GitHub Desktop.
A variation on browser-fuckup.js -- make everything inaccessible with style
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;")};
@UnforeseenOcean
Copy link
Author

Yikes

@UnforeseenOcean
Copy link
Author

Update: Now no element is safe from the destruction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment