Skip to content

Instantly share code, notes, and snippets.

@mikefarmer
Forked from bjodasso/Grooveselect
Created July 7, 2010 20:47
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 mikefarmer/467252 to your computer and use it in GitHub Desktop.
Save mikefarmer/467252 to your computer and use it in GitHub Desktop.
javascript:(function(){if(document.getElementById("groove")){document.getElementById("groove").parentNode.removeChild(document.getElementById("groove"));}else{qry=document.getSelection();if(qry){url="http://pseudosodacore.appspot.com/groove/"+qry;ifrm=document.createElement("IFRAME");ifrm.setAttribute("id","groove");ifrm.setAttribute("src",url);ifrm.style.top="50%";ifrm.style.left="50%";ifrm.style.position="fixed";ifrm.style.border="0";ifrm.style.width="0";ifrm.style.height="0";document.body.appendChild(ifrm);}}})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment