enableCopyAndContextMenu.user.js

enable copy&paste and context menue

  1. // ==UserScript==
  2. // @name enableCopyAndContextMenu.user.js
  3. // @namespace zhang
  4. // @description enable copy&paste and context menue
  5. // @include http://chuangshi.qq.com/read/*
  6. // @include http://www.wcxiaoshuo.com/*
  7. // @version 1
  8. // @grant GMlog
  9. // ==/UserScript==
  10.  
  11. function clearEventListeners() {
  12. document.oncontextmenu = undefined;
  13. document.oncopy = undefined;
  14. document.oncut = undefined;
  15. document.onpaste = undefined;
  16. document.onselectstart = undefined;
  17. document.body.removeAttribute("oncopy");
  18. document.body.removeAttribute("ondrag");
  19. document.body.removeAttribute("oncontextmenu");
  20. document.body.removeAttribute("onselectstart");
  21. }
  22.  
  23. window.addEventListener('load', clearEventListeners, false);

QingJ © 2025

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