Greasy Fork

Greasy Fork is available in English.

KAT [katcr.co] - Subtitle download links to TV and Movie torrents

Adds download links for subtitles to every TV and movie torrent on KAT (addic7ed & subscene)

当前为 2017-05-04 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        KAT [katcr.co] - Subtitle download links to TV and Movie torrents
// @description  Adds download links for subtitles to every TV and movie torrent on KAT (addic7ed & subscene) 
// @namespace   NotNeo
// @include     http*://katcr.co/new/torrents-details.php?*
// @require     https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @version     1
// @grant       none
// ==/UserScript==

var torrentTitle;
var baseURL;

$(document).ready(function() {
  if ( $("strong").find("a").not(":hidden").first().text() == "TV" ) {
    torrentTitle = $(".myFrame-caption").not(":hidden").text();
    baseURL = "http://www.addic7ed.com/search.php?search=";
    for (i=0;i<100;i++) {
      torrentTitle = torrentTitle.replace(" ", "+");
    }
    $("a[title='Download verified torrent file']").after(' <a rel="nofollow" class="kaGiantButton siteButton iconButton" title="Download Subtitles" href="' + baseURL + torrentTitle + '"><img src="http://www.addic7ed.com/favicon.ico" style="margin-left: 4px; margin-top: 4px;" alt="Download subtitles for this torrent" width="20" height="20"><span> Download Subtitles</span></a> ');
  } else if ( $("strong").find("a").first().text() == "Movies" ) {
    torrentTitle = $(".myFrame-caption").not(":hidden").text();
    baseURL = "https://subscene.com/subtitles/title?q=";
    for (i=0;i<100;i++) {
      torrentTitle = torrentTitle.replace(" ", "+");
    }
    $("a[title='Download verified torrent file']").after(' <a rel="nofollow" class="kaGiantButton siteButton iconButton" title="Download Subtitles" href="' + baseURL + torrentTitle + '"><img src="http://www.subscene.com/favicon.ico" style="margin-left: 4px; margin-top: 4px;" alt="Download subtitles for this torrent" width="20" height="20"><span> Download Subtitles</span></a> ');
  }
});