用于移除网站限制的通杀解决方案
当前为
// ==UserScript==
// @name Remove Limits - ALL KILL
// @name:zh-CN 移除限制 - 通杀
// @namespace http://tampermonkey.net/
// @version 0.1.1
// @description ALL-KILL solution for removing limits on the website
// @description:zh-CN 用于移除网站限制的通杀解决方案
// @match none
// @author PRO
// @run-at document-start
// @license gpl-3.0
// ==/UserScript==
(function () {
"use strict";
const events = ["contextmenu", "select", "selectstart", "copy", "cut", "dragstart"];
events.forEach((event) => {
document.addEventListener(event, (e) => {
e.stopImmediatePropagation();
}, { capture: true });
});
const style = document.createElement("style");
style.textContent = `* {
-webkit-touch-callout: unset !important;
-webkit-user-select: unset !important;
-moz-user-select: unset !important;
-ms-user-select: unset !important;
user-select: unset !important;
}`;
document.head.appendChild(style);
})();