Subs Adder [KAT]

Adds subtitle YIFYSubs link to KAT pages

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name        Subs Adder [KAT]
// @namespace   PXgamer
// @include     *kickass.so/*.html*
// @include     *kickass.to/*.html*
// @include     *kat.ph/*.html*
// @include     *kat.cr/*.html*
// @include     *kickassto.co/*.html*
// @include     *katproxy.is/*.html*
// @include     *thekat.tv/*.html*
// @version     2.7
// @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 .normalText.redButton[href^="/bookmarks/"]').after(' <br><br><a title="Check YIFY Subtitles" rel="http://www.yifysubtitles.com/movie-imdb/tt'+imdbID+'/" class="postLink icon16 textButton isearch subs"><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 .normalText.kaButton[href^="/bookmarks/"]').after(' <br><br><a title="Check Addic7ed.com" rel="http://www.addic7ed.com/search.php?search='+encodeURIComponent(episode)+'&Submit=Search" class="postLink icon16 textButton isearch subs"><span></span>check for subtitles</a>');   
  }
}

$(document).delegate('.subs', 'click', function() {
  var subLink = $(this).attr('rel');
   window.open(subLink, '_blank'); 
});