Hi,
Is it possible to give an option to allow the track name to be displayed on the title so the user can quickly glance at the title bar or tab to see what is playing? Even better if the title scrolled if the name is too long.
Thanks
Moderator: moderators
// ==UserScript==
// @name Now Playing in Subsonic
// @namespace npsub
// @include http://<domaintoyoursubsonicinstall>/right.view?*
// ==/UserScript==
function getNowPlayingName (){
var links = document.getElementsByTagName('a');
var element;
for (var i = 0; i < links.length; i++) {
element = links[i];
if (element.title != '') {
parent.document.title=element.title;
}
}
}
setInterval(getNowPlayingName, 5000);
Users browsing this forum: No registered users and 6 guests