Subs Adder [KAT]

Adds subtitle YIFYSubs link to KAT pages

  1. // ==UserScript==
  2. // @name Subs Adder [KAT]
  3. // @namespace PXgamer
  4. // @include *kickass.so/*.html*
  5. // @include *kickass.to/*.html*
  6. // @include *kat.ph/*.html*
  7. // @include *kat.cr/*.html*
  8. // @include *kickassto.co/*.html*
  9. // @include *katproxy.is/*.html*
  10. // @include *thekat.tv/*.html*
  11. // @version 2.7
  12. // @grant none
  13. // @description Adds subtitle YIFYSubs link to KAT pages
  14. // ==/UserScript==
  15.  
  16. if ($('.dataList').length==1) {
  17. if (/\/movies\//i.test($('span[id^="cat_"]').html())) {
  18. var imdbID = $('.dataList [href*="www.imdb.com/title/"]').html();
  19. $('.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>');
  20. }
  21. else if (/\/tv\//i.test($('span[id^="cat_"]').html())) {
  22. 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] : '');
  23. $('.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>');
  24. }
  25. }
  26.  
  27. $(document).delegate('.subs', 'click', function() {
  28. var subLink = $(this).attr('rel');
  29. window.open(subLink, '_blank');
  30. });

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址