Subs Adder [KAT]

Adds subtitle YIFYSubs link to KAT pages

Verze ze dne 14. 05. 2015. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        Subs Adder [KAT]
// @namespace   SexyWolfie
// @include     *kickass.to/*.html*
// @version     2.3
// @grant       none
// @description Adds subtitle YIFYSubs link to KAT pages
// ==/UserScript==

if ($('.dataList').length==1) {
  if (/\/movies\//i.test($('span[id^="cat_"]').html())) {
    var imdbID = $('.dataList [href*="www.imdb.com/title/"]').html();
    $('.dataList .textButton[href^="/bookmarks/"]').after(' <br><br><a title="Check YIFY Subtitles" href="http://www.yifysubtitles.com/movie-imdb/tt'+imdbID+'/" class="postLink icon16 textButton isearch"><span></span>check for subtitles</a>');
  }else if (/\/tv\//i.test($('span[id^="cat_"]').html())) {
    var episode = $('.dataList li:first strong').html()+((/S\d\dE\d\d/).test($('.dataList ul:first').html()) ? ' '+$('.dataList ul:first').html().match(/S\d\dE\d\d/)[0] : '');
    $('.dataList .textButton[href^="/bookmarks/"]').after(' <br><br><a title="Check Addic7ed.com" href="http://www.addic7ed.com/search.php?search='+encodeURIComponent(episode)+'&Submit=Search" class="postLink icon16 textButton isearch"><span></span>check for subtitles</a>');   
  }
}