;(function() {
  "use strict";

  var controller = require("BaseController"),
      sk_log = require("../modules/SKLog.js"),
      $ = require("jquery");

  var multiSelectors = {
    play: [".ytp-button-play", null],
    pause: [".ytp-button-pause", null],
    playPause: [".ytp-button-play", ".ytp-play-button"],
    playNext: [".ytp-button-next", ".ytp-next-button"],
    playPrev: [".ytp-button-prev", ".ytp-prev-button"],
    playState: [".ytp-button-pause", ".ytp-play-button[aria-label='Pause']"]
  };

  controller.init({
    siteName: "YouTube",
    playPause: ".ytp-button-play",
    play: ".ytp-button-play",
    pause: ".ytp-button-pause",
    playNext: ".ytp-button-next",
    playPrev: ".ytp-button-prev",
    mute: ".ytp-button-volume",
    like: "#watch-like",
    dislike: "#watch-dislike",

    playState: ".ytp-button-pause",
    song: ".watch-title",
    buttonSwitch: true
  });

  controller.checkPlayer = function() {
    var that = this;

    if(document.querySelector(multiSelectors.play[0]) || document.querySelector(multiSelectors.pause[0])) {
      $.each(multiSelectors, function(key, value) {
        that.selectors[key] = value[0];
      });
      that.buttonSwitch = true;
    }
    else {
      $.each(multiSelectors, function(key, value) {
        that.selectors[key] = value[1];
      });
      that.buttonSwitch = false;
    }
  };

  controller.playNext = function() {
    if(document.querySelector(this.selectors.playNext) === null) sk_log("disabled. Playlist selectors not found!");
    else this.click({selectorButton: this.selectors.playNext, action: "playNext"});
  };

  controller.playPrev = function() {
    if(document.querySelector(this.selectors.playPrev) === null) sk_log("disabled. Playlist selectors not found!");
    else this.click({selectorButton: this.selectors.playPrev, action: "playPrev"});
  };

})();

@@ -760,50 +760,87 @@
 e: %22
-#watch-like%22,%0A    dislike: %22#watch
+.like-button-renderer-like-button%22,%0A    dislike: %22.like-button-renderer
 -dislike
 %22,%0A%0A
@@ -835,16 +835,23 @@
 -dislike
+-button
 %22,%0A%0A    

Fix youtube like/dislike.