Skip to content

Instantly share code, notes, and snippets.

@samccone
Last active June 29, 2017 15:41
Show Gist options
  • Save samccone/3700550 to your computer and use it in GitHub Desktop.
Save samccone/3700550 to your computer and use it in GitHub Desktop.
hipchat music status
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();
@samccone
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment