'use strict';

/* global Connector */

Connector.playerSelector = '#player';

Connector.trackArtImageSelector = '#player_mix img';

Connector.artistSelector = '#now_playing .title_artist .a:first';

Connector.trackSelector = '#now_playing .title_artist .t:first';

Connector.albumSelector = '#now_playing .album .detail:first';

Connector.playButtonSelector = '#player_play_button';

Connector.getUniqueID = function () {
	return $('.track_details').attr('id').replace('track_details_', '');
};

@@ -36,101 +36,434 @@
 */%0A%0A
-Connector.playerSelector = '#player';%0A%0AConnector.trackArtImageSelector = '#player_mix im
+%0Aif ($('#play_on_youtube')) %7B%0A%0A    Connector.playerSelector = '#play_area';%0A%0A    Connector.artistSelector = '#now_playing .title_artist .a';%0A%0A    Connector.trackSelector = '#now_playing .title_artist .t';%0A%0A    Connector.albumSelector = '#now_playing .album .detail';%0A%0A    Connector.isPlaying = function() %7B%0A        return $('#mix_youtube').hasClass('playin
 g'
+)
 ;%0A
-%0A
+    %7D;%0A%0A%7D else %7B%0A%0A    Connector.playerSelector = '#player';%0A%0A    
 Conn
@@ -517,32 +517,36 @@
 ist .a:first';%0A%0A
+    
 Connector.trackS
@@ -587,32 +587,36 @@
 ist .t:first';%0A%0A
+    
 Connector.albumS
@@ -659,24 +659,28 @@
 il:first';%0A%0A
+    
 Connector.pl
@@ -722,16 +722,73 @@
 tton';%0A%0A
+%7D%0A%0AConnector.trackArtImageSelector = '#player_mix img';%0A%0A
 Connecto
@@ -815,15 +815,17 @@
 tion
- 
 () %7B%0A
-%09
+    
 retu
@@ -891,9 +891,8 @@
  '');%0A%7D;
-%0A

Allow the ability to play tracks from youtube on 8tracks