Hide dead links - MagnetDL

Hides magnet links without any seeders.

目前為 2024-05-04 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Hide dead links - MagnetDL
// @namespace    https://gf.qytechs.cn/en/users/670188-hacker09?sort=daily_installs
// @version      1
// @description  Hides magnet links without any seeders.
// @author       hacker09
// @include      https://www.magnetdl.com/*/*
// @icon         https://www.magnetdl.com/img/m.gif
// @run-at       document-end
// @grant        none
// ==/UserScript==

(function() {
  'use strict';
  document.querySelectorAll(".s").forEach(function(el) { //forEach link
    if (el.innerText === '0') { //If seeder count is zero
      el.parentNode.style.display = 'none'; //Hide the parent element
      el.parentNode.previousElementSibling.style.display = 'none'; //Hide the previous blue line element
    } //Finishes the if condition
  }); //Finishes the forEach loop
})();

QingJ © 2025

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