Hide dead links - MagnetDL

Hides magnet links without any seeders.

目前为 2024-05-08 提交的版本。查看 最新版本

// ==UserScript==
// @name         Hide dead links - MagnetDL
// @namespace    https://gf.qytechs.cn/en/users/670188-hacker09?sort=daily_installs
// @version      3
// @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';
  new MutationObserver(function() {
    document.querySelectorAll(".s").forEach(function(el) { //forEach link start the MutationObserver
      if (el.innerText === '0') { //If seeder count is zero
        el.parentNode.style.display = 'none'; //Hide the parent element
        el.parentNode.previousElementSibling !== null ? el.parentNode.previousElementSibling.style.display = 'none' : ''; //Hide the previous blue line element
      } //Finishes the if condition
    }) //Finishes the forEach loop
  }).observe(document, { childList: true, subtree: true }); //Finishes the MutationObserver
})();

QingJ © 2025

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