您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Blurs the covers of R-rated books on Readmoo.
// ==UserScript== // @name Readmoo: Blurs R-rated Covers // @name:zh-TW 讀墨電子書:模糊限制級封面 // @description Blurs the covers of R-rated books on Readmoo. // @description:zh-TW 模糊讀墨電子書限制級書本的封面。 // @icon https://wsrv.nl/?url=https://cdn.readmoo.com/images/manifest/icon_152x152.png // @author Jason Kwok // @namespace https://jasonhk.dev/ // @version 1.0.0 // @license MIT // @match https://readmoo.com/ // @match https://readmoo.com/* // @run-at document-end // @grant none // @require https://update.gf.qytechs.cn/scripts/483122/1304475/style-shims.js // @require https://update.gf.qytechs.cn/scripts/482311/1297431/queue.js // @supportURL https://gf.qytechs.cn/scripts/494594/feedback // ==/UserScript== GM.addStyle(` .listItem-box.nsfw .book-cover img { filter: blur(var(--nsfw-blur-radius, 7.5px)); transition: filter var(--nsfw-transition-duration, 0.3s); } .listItem-box.nsfw:hover .book-cover img, .listItem-box.nsfw:focus-within .book-cover img { filter: blur(0px); transform: none; } `); const queue = new Queue({ autostart: true, concurrency: 10 }); queue.addEventListener("error", (event) => console.error(event.detail.error)); const products = document.querySelectorAll(".listItem-box:not(.full-list)"); for (const product of products) { const cover = product.querySelector(".book-cover img"); if ((cover?.src ?? cover?.dataset.lazyOriginal) !== "https://cdn.readmoo.com/images/r18.png") { queue.push(async () => { if (await isNsfw(product.querySelector(".product-link").href)) { product.classList.add("nsfw"); } }); } } async function isNsfw(url) { try { const response = await fetch(url, { credentials: "omit" }); if (response.status === 200) { const html = await response.text(); const parser = new DOMParser(); const page = parser.parseFromString(html, "text/html"); return (page.getElementById("18x_page") !== null); } } catch (e) { console.error(e); } return false; }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址