允许复制和粘贴

尝试绕过禁止复制和粘贴的限制

  1. // ==UserScript==
  2. // @name 允许复制和粘贴
  3. // @namespace https://gf.qytechs.cn/zh-CN/users/904778-blueccoffee
  4. // @version 0.1
  5. // @description 尝试绕过禁止复制和粘贴的限制
  6. // @author BluecCoffee
  7. // @match https://*.*/*
  8. // @match https://*.*/
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. // 取消右键菜单限制
  17. document.oncontextmenu = null;
  18.  
  19. // 取消选择限制
  20. document.onselectstart = null;
  21.  
  22. // 取消复制限制
  23. document.oncopy = null;
  24.  
  25. // 取消剪切限制
  26. document.oncut = null;
  27.  
  28. // 取消粘贴限制
  29. document.onpaste = null;
  30.  
  31. // 如果网站使用了addEventListener来添加事件,你可能还需要更复杂的方法来移除它们
  32. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址