Mirror Creator Link Checker (Improved)

Why Check 1 by 1 if you can do automatically?

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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();
  }
});