Greasy Fork is available in English.
🏆解除智慧树网复制粘贴限制,随意复制✅随意粘贴✅
// ==UserScript==
// @name 🥇智慧树网复制粘贴限制解除
// @version 3.0
// @description 🏆解除智慧树网复制粘贴限制,随意复制✅随意粘贴✅
// @author Zhong
// @match *://*.zhihuishu.com/*
// @icon https://qah5.zhihuishu.com/favicon.ico
// @grant none
// @namespace http://greasyfork.icu/users/1080809
// ==/UserScript==
(function () {
'use strict';
window.onload = function () {
// Set a timeout to run the functions after 10 seconds
setTimeout(function () {
// Override the document.getSelection method
document.getSelection = function () {
return {
removeAllRanges: function () {
// Do nothing or handle the function differently
}
};
};
// Enable text selection and context menu actions
// Allow text selection
document.onselectstart = true;
// Allow copy, cut, paste, and right-click menu actions
document.oncopy = true;
document.oncut = true;
document.onpaste = true;
document.oncontextmenu = true;
}, 3000);
// save original setInterval
const originalSetInterval = window.setInterval;
// define new setInterval
window.setInterval = function (callback, delay) {
const newDelay = delay * 10000; // 将间隔延长为原来的 10000 倍
return originalSetInterval(callback, newDelay);
};
};
})();