Skip to content

Instantly share code, notes, and snippets.

@UnforeseenOcean
Last active July 24, 2019 05:54
Show Gist options
  • Save UnforeseenOcean/a47647e32ccb40e126217a539a6e3ba2 to your computer and use it in GitHub Desktop.
Save UnforeseenOcean/a47647e32ccb40e126217a539a6e3ba2 to your computer and use it in GitHub Desktop.
Another variation of browser-fuckup.js -- shrink everything
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;")};
@UnforeseenOcean
Copy link
Author

Limitations: This doesn't work on pages with no DIV elements.

@UnforeseenOcean
Copy link
Author

shrinkify

@UnforeseenOcean
Copy link
Author

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