Last active
May 23, 2016 10:59
-
-
Save atri-konami/74e785f53cbecb8f085cf1b2691e50d5 to your computer and use it in GitHub Desktop.
Google Play MusicのNowPlayngをツイートするBookmarklet
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
!function(){var e=document.querySelector("#currently-playing-title").innerHTML,t=document.querySelector("#player-artist").innerHTML,n=document.querySelector(".player-album").innerHTML,o=encodeURIComponent("Now playing on Google Play Music: "+e+" - "+t+" in "+n);window.open("https://twitter.com/intent/tweet?text="+o+"&hashtags=NowPlaying","","width=550, height=420")}(); |
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
(function(){ | |
var song = document.querySelector("#currently-playing-title").innerHTML; | |
var artist = document.querySelector("#player-artist").innerHTML; | |
var album = document.querySelector(".player-album").innerHTML; | |
var text = encodeURIComponent("Now playing on Google Play Music: " + song + " - " + artist + " in " + album); | |
window.open('https://twitter.com/intent/tweet?text=' + text + '&hashtags=NowPlaying', '', 'width=550, height=420'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment