Skip to content

Instantly share code, notes, and snippets.

@tripulse
Last active January 20, 2020 08:36
Show Gist options
  • Save tripulse/c8395ead46b98467f7c7bc97fbe4fa09 to your computer and use it in GitHub Desktop.
Save tripulse/c8395ead46b98467f7c7bc97fbe4fa09 to your computer and use it in GitHub Desktop.
Creates a flashing screen effect.
(function() {
var data = document.body.innerHTML;
setInterval(function() { document.body.innerHTML = "" }, 10);
setInterval(function() { document.body.innerHTML = data}, 12);
})();
@tripulse
Copy link
Author

tripulse commented Jun 4, 2018

I made this code randomly and I think this could be a funny code

@tripulse
Copy link
Author

tripulse commented Mar 8, 2019

WARNING: Flashing content could cause seizures. Take care of you!

@tripulse
Copy link
Author

tripulse commented Mar 8, 2019

HowTo

  • Press (Ctrl + Shift + I) to open DevTools.
  • Paste this code in the Console tab.

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