Apollo.rip & Redacted.CH :: Uploads Auto-Subscriber

Your uploads will be directly subscribed

目前為 2017-12-08 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Apollo.rip & Redacted.CH :: Uploads Auto-Subscriber
// @description Your uploads will be directly subscribed
// @include     https://*redacted.cd/torrents.php*
// @include     https://*apollo.rip/torrents.php*
// @require     https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @icon        https://redacted.cd/favicon.ico
// @version     1.0.2
// @grant       GM_getValue
// @namespace https://gf.qytechs.cn/users/2290
// ==/UserScript==
 
// Getting the usernum
var usernum = document.documentElement.innerHTML.match(/user\.php\?id\=[0-9]+/)[0].split("?")[1];
// Converting the userid to only numbers from API
var userid = usernum.replace(/[^0-9]/g, '');

// Getting the torrent ID
var pageid = document.URL.split("=")[1];
var pageixd = pageid.split("&")[0];

var page = 'torrents';

// We get torrent details
var str2 = $("#torrent_details").html();
// Extraction of all userid's possible
var number = str2.replace(/[^0-9]/g, '');
   
// Getting the current subscribing status
var status_subscribe = $("#subscribelink_" + page + pageixd).text();

// If the userid is found in the upload list and if we can subscribe to the release, let's do it!
if(number.indexOf(userid) > -1 && status_subscribe == "Subscribe"){
    
    SubscribeComments(page, pageixd);
}

QingJ © 2025

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