超级复制

破解和禁止网站复制功能。

目前為 2022-02-14 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name 超级复制
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description 破解和禁止网站复制功能。
  6. // @author You
  7. // @license MIT
  8. // @match https://*.com/*
  9. // @match https://*.cn/*
  10. // @match http://*.com/*
  11. // @match http://*.cn/*
  12. // @icon https://www.google.com/s2/favicons?sz=64&domain=gf.qytechs.cn
  13. // @grant GM_xmlhttpRequest
  14. // @grant GM_openInTab
  15. // @grant GM_addStyle
  16. // @grant GM_setClipboard
  17. // @grant unsafeWindow
  18. // ==/UserScript==
  19.  
  20. var KEY;
  21. "use esversion: 8";
  22.  
  23. function _main(){
  24. KEY = prompt("输入1破解/关闭禁止复制,输入2启用禁止复制")
  25. switch (KEY){
  26. case "1":{
  27. document.oncontextmenu='';
  28. break;
  29. } case "2":{
  30. document.oncontextmenu=Click;
  31. break;
  32. } default:{
  33. alert('非法')
  34. }
  35. }
  36.  
  37. function Click(){
  38. alert('禁止复制');
  39. window.event.returnValue=false;
  40. }
  41.  
  42.  
  43. mainTask();
  44. async function mainTask() {
  45. let btn = "<button onclick='_main()'>破解禁止复制</button>"
  46. document.write(btn)
  47. Swal.fire({
  48. btn,
  49. width: 900,
  50. allowOutsideClick: false,
  51. showCloseButton: true,
  52. showCancelButton: true,
  53. confirmButtonText: '好评',
  54. cancelButtonText: '关闭',
  55. reverseButtons: true
  56. }).then(r => {
  57. if (r.isConfirmed){
  58. GM_openInTab('https://gf.qytechs.cn/zh-CN/scripts/436053-%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98%E7%9B%B4%E9%93%BE%E6%9E%81%E9%80%9F%E4%B8%8B%E8%BD%BD%E5%8A%A9%E6%89%8B-%E5%85%A8%E6%96%B0%E7%89%88%E6%9C%AC/feedback');
  59. }});
  60. // Your code here...
  61. }}

QingJ © 2025

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