Skip to content

Instantly share code, notes, and snippets.

@meshulam
Last active December 11, 2015 18:39
Show Gist options
  • Save meshulam/4643405 to your computer and use it in GitHub Desktop.
Save meshulam/4643405 to your computer and use it in GitHub Desktop.
This bookmarklet recites the current URL as Dadaist sound poetry. It just removes all non-letters from the URL and passes it to the Google Translate text-to-speech service in Italian mode (it's funniest that way). It doesn't work on all sites, probably because of some sort of cross-site referral limitations on Google's part. Tested in Safari and…
javascript:(function(){ var s=location.href.replace(/[^A-Za-z]/g,'');var url='http://translate.google.com/translate_tts?ie=UTF-8&tl=it&q='+s; console.log(url); var a=document.createElement('audio');a.setAttribute('src',url);a.play();}())
@meshulam
Copy link
Author

The best use of this is on the Chrome Web Store, because of the crazy long random letter IDs that every app has. Example: https://chrome.google.com/webstore/detail/youtube/blpcfgokakmgnkcojhhkbfbldkacnbeo

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