Mirror Creator Link Checker (Improved)

Why Check 1 by 1 if you can do automatically?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Mirror Creator Link Checker (Improved)
// @namespace    https://github.com/MeGaNeKoS/Mirror-Creator-Link-Checker
// @version      1.3
// @description  Why Check 1 by 1 if you can do automatically?
// @author       sharmanhall (Based on MeGaNeKo(めがねこ)'s script)
// @license      MIT
// @match        *://www.mirrored.to/files/*
// @grant        none
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// ==/UserScript==

// Function to check links and click on the "Check" button
function checkLinks() {
  $('a[onclick^="showStatus"]').each(function() {
    $(this).click();
  });
}

// Check links periodically until there are no more
var myVar = setInterval(checkLinks, 1000);

// Stop checking when there are no more links to check
function stopChecking() {
  clearInterval(myVar);
}

// Call the stopChecking function when the trigger count is zero
$(document).ajaxStop(function() {
  if (trigger === 0) {
    stopChecking();
  }
});