Skip to content

Instantly share code, notes, and snippets.

@hinaloe
Last active December 18, 2015 16:14
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 hinaloe/5e2c1095912017f3d3cd to your computer and use it in GitHub Desktop.
Save hinaloe/5e2c1095912017f3d3cd to your computer and use it in GitHub Desktop.
google play music nowplaying
javascript:!function(d){try{var a = d.querySelector("#player-artist").textContent,t=d.querySelector("#currently-playing-title").textContent,al=d.querySelector(".player-album").textContent;var text=`|Music:${t}\n|Artist:${a}\n|Album:${al}\n#nowplaying #googlePlayMusic`;window.open('https://twitter.com/intent/tweet?text='+encodeURIComponent(text),"","chrome=yes,height=300,width=500");} catch (e) {alert(e);}}(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment