您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Attempt to fix broken html and stuff
// ==UserScript== // @name Webnovel Online Fixer // @namespace https://theusaf.github.io // @version 1.1 // @description Attempt to fix broken html and stuff // @author theusaf // @match https://webnovelonline.com/chapter/* // @grant none // ==/UserScript== const paragraphs = document.querySelectorAll(".chapter-content > p,.chapter-content>div p"); const noselect = document.querySelectorAll("[style=\"user-select: none;\"]"); for(let i = 0;i<paragraphs.length;i++){ paragraphs[i].innerHTML = paragraphs[i].innerHTML.replace(/>/gm,">").replace(/</gm,"<"); while(paragraphs[i].innerHTML.indexOf("&") !== -1){ paragraphs[i].innerHTML = paragraphs[i].innerHTML.replace(/&/gm,"&"); } if(paragraphs[i].innerHTML === "*** You are reading on https://webnovelonline.com ***"){ paragraphs[i].style = "display:none;"; } } for(let i = 0;i<noselect.length;i++){ noselect[i].style = ""; }