您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove annoying selection and copying prevention
// ==UserScript== // @name A-t.nu fix // @namespace https://ikke.github.io/ // @version 1.0 // @description Remove annoying selection and copying prevention // @author Ikke // @match https://a-t.nu/novel/* // @icon https://a-t.nu/wp-content/uploads/2021/06/cropped-AT-LOGO-192x192.png // @grant none // ==/UserScript== (function () { "use strict"; const text = document.querySelectorAll("p span"); for (const el of text) { let before = getComputedStyle(el, ":before").content.replace(/^"|"$/g, ""); let after = getComputedStyle(el, ":after").content.replace(/^"|"$/g, ""); el.insertAdjacentText("afterbegin", before); el.insertAdjacentText("beforeend", after); } let stylesheet = document.styleSheets[0]; stylesheet.insertRule("span:before, span:after, p:before { content: none !important }"); stylesheet.insertRule("p { user-select: auto !important }"); })();