您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the anonymous reader block on wuxiaworld.
当前为
// ==UserScript== // @name WuxiaWorld AnonReader Unblock // @version 1.0 // @description Removes the anonymous reader block on wuxiaworld. // @author Ya boi Nigel Thornberry // @match https://www.wuxiaworld.com/novel/*/*-chapter-* // @grant none // @namespace https://greasyfork.org/users/467871 // ==/UserScript== function hasClasses(element, classList) { if(element.classList == undefined) return false; for(var index in classList) { if(!element.classList.contains(classList[index])) { return false; } } return true; } (function() { 'use strict'; var divList = document.getElementsByTagName('div'); for(var index in divList) { var element = divList[index]; if(element.id === "quotalimitmodal") { // Remove Quota Modal element.remove(); } else if (hasClasses(element, ['modal-backdrop', 'fade', 'in'])) { // Remove Modal Backdrop element.remove(); } else if(element.id === "chapter-content") { // Remove Text Blurring element.classList.remove('text-disabled'); } } // Re-enable scrolling and remove unnecessary styling var body = document.getElementsByTagName('body')[0]; body.classList.remove('modal-open'); body.removeAttribute('style'); })();