Skip to content

Instantly share code, notes, and snippets.

@rosado
Created July 3, 2020 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rosado/45e93d94c8dedfe5e07d4561ff21fa8c to your computer and use it in GitHub Desktop.
Save rosado/45e93d94c8dedfe5e07d4561ff21fa8c to your computer and use it in GitHub Desktop.
Radio 3 bookmarklet for radio3.io
javascript:(function(){
function encode (s) {
s = s.toString ();
s = s.replace (new RegExp (/" %"/, "g"), " percent");
return (encodeURIComponent(s));
}
var url="http://radio3.io/?";
var link = "link=" + encode(location.href);
var title="&title=" + (document.title);
var desc="&description=" + (document.getSelection());
window.open (url + link + title + desc);})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment