Skip to content

Instantly share code, notes, and snippets.

@lukes
Created December 18, 2014 21:38
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lukes/06cc28853f5f7ccd15de to your computer and use it in GitHub Desktop.
Save lukes/06cc28853f5f7ccd15de to your computer and use it in GitHub Desktop.
<rant> to actual rant
// <rant> to actual rant
// (requires modern browsers)
var rants = document.getElementsByTagName('rant');
for (i=0;i<rants.length;i++) {
var rant = new SpeechSynthesisUtterance(rants[i].innerHTML);
window.speechSynthesis.speak(rant);
}
@chrisspring215
Copy link

AHHHAHAHA

@Zer0t3ch
Copy link

Holy shit, that is amazing. I think I'm going to go make a chrome extension.......

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