您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide garbage genres on FWN and LR
// ==UserScript== // @name Hide Garbage Genres on FreeWebNovel/LibRead // @namespace https://freewebnovel.com/* // @version 1.02 // @author Unbroken // @description Hide garbage genres on FWN and LR // @match https://freewebnovel.com/* // @match https://libread.com/* // @grant none // @license GPLv3 // ==/UserScript== (function() { 'use strict'; // Select all div elements with class "li-row" var divs = document.querySelectorAll('.li-row'); // Loop through each div element for (var i = 0; i < divs.length; i++) { var div = divs[i]; // Select all anchor elements within the div var anchors = div.querySelectorAll('a'); // Check if any anchor element contains the specified words in its href attribute if (Array.from(anchors).some(anchor => ['Yaoi', 'Josei', 'Shoujo', 'Ai', 'Romanc', 'Adult'].some(word => anchor.href.includes(word)))) { // Hide the div element div.style.display = 'none'; } } })();