'use strict';

/* global Connector */

Connector.playerSelector = '#menu';

Connector.getArtistTrack = function () {
			var text = $('#current_track').text();
			var separator = this.findSeparator(text);

			var artist = null;
			var track = null;

			if (separator !== null) {
				track = text.substr(0, separator.index);
				artist = text.substr(separator.index + separator.length);
			}

			return {artist: artist, track: track};
		};

Connector.isPlaying = function () {
	return $('.jp-pause').is(':visible');
};

@@ -64,13 +64,22 @@
  = '
-#
+.
 menu
+__options
 ';%0A%0A
@@ -92,435 +92,165 @@
 tor.
-getA
+a
 rtist
-Track = function () %7B%0A%09%09%09var text = $('#
+Selector = '.
 current
-_t
+T
 rack
-').text();%0A%09%09%09var separator = this.findSeparator(text);%0A%0A%09%09%09var artist = null;%0A%09%09%09var track = null;%0A%0A%09%09%09if (separator !== null) %7B%0A%09%09%09%09track = text.substr(0, separator.index);%0A%09%09%09%09artist = text.substr(separator.index + separator.length);%0A%09%09%09%7D%0A%0A%09%09%09return %7Bartist: artist, track: track%7D;%0A%09%09%7D;%0A%0AConnector.isPlaying = function () %7B%0A%09return $('.jp-pause').is(':visible');%0A%7D
+ .artist';%0A%0AConnector.trackSelector = '.currentTrack .song';%0A%0AConnector.playButtonSelector = '.player-buttons-main .player-play'
 ;%0A

Fix wonder.fm connector