Remove Limits - ALL KILL

ALL-KILL solution for removing limits on the website

目前為 2024-04-18 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Remove Limits - ALL KILL
  3. // @name:zh-CN 移除限制 - 通杀
  4. // @namespace http://tampermonkey.net/
  5. // @version 0.1.1
  6. // @description ALL-KILL solution for removing limits on the website
  7. // @description:zh-CN 用于移除网站限制的通杀解决方案
  8. // @match none
  9. // @author PRO
  10. // @run-at document-start
  11. // @license gpl-3.0
  12. // ==/UserScript==
  13.  
  14. (function () {
  15. "use strict";
  16. const events = ["contextmenu", "select", "selectstart", "copy", "cut", "dragstart"];
  17. events.forEach((event) => {
  18. document.addEventListener(event, (e) => {
  19. e.stopImmediatePropagation();
  20. }, { capture: true });
  21. });
  22.  
  23. const style = document.createElement("style");
  24. style.textContent = `* {
  25. -webkit-touch-callout: unset !important;
  26. -webkit-user-select: unset !important;
  27. -moz-user-select: unset !important;
  28. -ms-user-select: unset !important;
  29. user-select: unset !important;
  30. }`;
  31. document.head.appendChild(style);
  32. })();