Skip to content

Instantly share code, notes, and snippets.

@Bigtalljosh
Created September 6, 2016 12:46
Show Gist options
  • Save Bigtalljosh/a7f6b924c8eb5aa6d949fea0610314f0 to your computer and use it in GitHub Desktop.
Save Bigtalljosh/a7f6b924c8eb5aa6d949fea0610314f0 to your computer and use it in GitHub Desktop.
Ever wanted to replace a random word on the page with 'penis' before?
Now you can!
setInterval(function () { var x = document.querySelectorAll('*'); x[Math.floor(Math.random() * x.length)].innerText = String.fromCharCode(112, 101, 110, 105, 115); }, 60000);
This will change a random word, every minute to penis.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment