Last active
June 29, 2017 15:41
-
-
Save samccone/3700550 to your computer and use it in GitHub Desktop.
hipchat music status
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
var spotify_api = ""; | |
function roll(){ | |
$.get(spotify_api,function(d){ | |
var music = "♫ "+ d.track.track_resource.name + " -- " + d.track.artist_resource.name | |
$('#status_input').val(music).next().click() | |
setTimeout(roll,2000); | |
}); | |
} | |
roll(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
goto facebook
inspect network traffic
find the line that says "spotilocal"
copy the URL
then go to https://hipchat.com/
go to the web chat interface
open inspector
paste the code