Hides magnet links without any seeders.
Version vom
// ==UserScript==
// @name Hide dead links - MagnetDL
// @namespace https://greasyfork.org/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
})();