Skip to content

Instantly share code, notes, and snippets.

Forked from takanakahiko/nowplaing_from_gpm.js
Last active November 27, 2015 18:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lindwurm/7aaab7bf773019cc130d to your computer and use it in GitHub Desktop.
Web版Google Play MusicでもいつものフォーマットでNowPlayingするブックマークレット
var te=document.getElementById("player-song-title");
var t=te.innerHTML;
t=t.replace(/& /g,"&");
var ae=document.getElementById("player-artist");
var a=ae.innerHTML;
a=a.replace(/& /g,"&");
var ale=document.getElementsByClassName("player-album");
var al=ale[0].innerHTML;
al=al.replace(/& /g,"&");
var tweet=encodeURIComponent('『'+t+'』'+'by《'+a+'》'+'from【'+al+'】'+' #webPlay'+' #nowplaying');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment