Greasy Fork is available in English.
Adds download links for subtitles to every TV and movie torrent on KAT (addic7ed & subscene)
当前为
// ==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> ');
}
});