Create a gist now

Instantly share code, notes, and snippets.

@meshulam /zimbra.txt
Last active Dec 11, 2015

What would you like to do?
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

This comment has been minimized.

Show comment Hide comment
@meshulam

meshulam Jan 26, 2013

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

Owner

meshulam commented Jan 26, 2013

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