您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
解除 Xiaobot.net 上的文本选择和复制限制
// ==UserScript== // @name 小报童复制 // @namespace http://tampermonkey.net/ // @version 1.1 // @description 解除 Xiaobot.net 上的文本选择和复制限制 // @author Keniu // @match https://xiaobot.net/* // @icon https://www.google.com/s2/favicons?sz=64&domain=xiaobot.net // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; // Function to unlock text selection and copying restrictions function unlockTextSelection() { try { // Unlock the body element document.body.style.userSelect = 'auto'; document.body.onmousedown = null; document.body.onselectstart = null; // Unlock all elements document.querySelectorAll('*').forEach(element => { element.style.userSelect = 'auto'; element.onmousedown = null; element.onselectstart = null; }); console.log('Text selection and copying unlocked.'); } catch (error) { console.error('Error unlocking text selection:', error); } } // Wait for the DOM to fully load before executing if (document.readyState === 'complete') { unlockTextSelection(); } else { window.addEventListener('load', unlockTextSelection); } })();