Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
mark myspace connector as out of date, closes web-scrobbler#49
Browse files Browse the repository at this point in the history
  • Loading branch information
david-sabata committed Jul 4, 2012
1 parent bee04fe commit f088002
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions myspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Chrome-Last.fm-Scrobbler MySpace.com Connector by Yasin Okumus
* http://www.yasinokumus.com
*/

var durationPart = ".duration";
var trackPart = ".songTitle";
var artistPart = ".bandName";
Expand All @@ -13,7 +13,17 @@ $(function(){
});

$(document).ready(function(){


console.log('DOCUMENT READY');

// show disabled icon
chrome.extension.sendRequest({type: 'reportDisabled'}, function(response){
console.log(response);
});

console.log('REQUEST SENT');

/* reenable after fix
$(durationPart).bind('DOMSubtreeModified',function(e){
var duration = parseDuration($(durationPart).text());
// if track list deleted
Expand All @@ -30,6 +40,7 @@ $(document).ready(function(){
});
}
});
*/
});

function parseDuration(match){
Expand All @@ -43,9 +54,9 @@ function parseDuration(match){
}

function cancel(){
$(window).unload(function() {
$(window).unload(function() {
// reset the background scrobbler song data
chrome.extension.sendRequest({type: 'reset'});
return true;
return true;
});
}

0 comments on commit f088002

Please sign in to comment.