Created
January 6, 2015 20:05
-
-
Save tanelpuhu/1cc71459e9c6a1891a9b to your computer and use it in GitHub Desktop.
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
// track in title on play.pocketcasts.com | |
var doc_title = document.title, | |
intr = function() { | |
var title = $('.player_podcast_title:first').text(), | |
remaining = $('.remaining_time:first').text(), | |
current = $('.current_time:first').text(); | |
if(title && remaining && current) { | |
document.title = remaining + ' : ' + title + ' : ' + doc_title; | |
} else { | |
document.title = doc_title; | |
} | |
}; | |
setInterval(intr, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment