Created
April 7, 2012 22:59
-
-
Save letsbreelhere/2332706 to your computer and use it in GitHub Desktop.
Set pandora title to track info
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 changeTitle = function() { | |
var artistName = $("#trackInfo .artistSummary").text(); | |
var trackTitle = $("#trackInfo .songTitle").text(); | |
$("title").text(trackTitle + " by " + artistName + " - Pandora"); | |
} | |
changeTitle(); | |
setInterval(changeTitle, 5000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment