another Nyaa hide 0 seeders

Hide torrent with 0 seeders

// ==UserScript==
// @name         another Nyaa hide 0 seeders
// @namespace    
// @version      1.0
// @description  Hide torrent with 0 seeders
// @include      https://nyaa.si/*
// @include      https://sukebei.nyaa.si/*
// @license      MIT
// @grant        none
// ==/UserScript==


(function() {
    'use strict';

    // 获取所有的 tr 元素
    const rows = document.querySelectorAll('tr.default');

    rows.forEach(row => {
        // 获取倒数第三个 td 的值
        const thirdLastTd = row.querySelectorAll('td')[row.querySelectorAll('td').length - 3];

        // 检查该值是否为 0
        if (thirdLastTd && thirdLastTd.textContent.trim() === '0') {
            // 设置该 tr 的 display 为 none
            row.style.display = 'none';
        }
    });
})();

QingJ © 2025

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