Created
July 3, 2020 18:45
-
-
Save rosado/45e93d94c8dedfe5e07d4561ff21fa8c to your computer and use it in GitHub Desktop.
Radio 3 bookmarklet for radio3.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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