您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This will display a red warning label for any series that aren't likely to be finished due do being axed, etc. based on the status field of the NU page.
// ==UserScript== // @name NovelUpdates Warning for Hiatus, Axed, Discontinued, etc. // @description This will display a red warning label for any series that aren't likely to be finished due do being axed, etc. based on the status field of the NU page. // @version 0.1 // @match https://www.novelupdates.com/series/* // @icon https://www.novelupdates.com/favicon.ico // @license MIT // @namespace https://greasyfork.org/users/721922 // ==/UserScript== function addStatusText(text) { const title = document.querySelector(".seriestitlenu"); const statusSpan = document.createElement("span"); statusSpan.style = "color: #ff0000; text-transform: capitalize"; statusSpan.textContent = ` (${text})`; title.append(statusSpan); } function main() { const statusDiv = document.querySelector("#editstatus"); const results = statusDiv.textContent.match(/\b(?:hiatus|discontinued|axed|dead|death|cancelled|unfinished)\b/i); console.log(results); if (results && results.length) { const statusText = results[0]; addStatusText(statusText); } } main();