web helper

网页助手

  1. // ==UserScript==
  2. // @name web helper
  3. // @namespace https://github.com/dingcang/tampermonkey-web-helper
  4. // @version 0.0.3
  5. // @description 网页助手
  6. // @author dc
  7. // @match *://*/*
  8. // @run-at document-start
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. "use strict";
  14. if (location.host.includes("csdn")) {
  15. Object.defineProperty(window, "copyPopSwitch", {
  16. value: false,
  17. writable: false,
  18. });
  19. }
  20.  
  21. if (location.host.includes("9ku")) {
  22. Object.defineProperty(window, "close", {
  23. value() {
  24. console.log("window close");
  25. },
  26. writable: false,
  27. });
  28. }
  29.  
  30. Object.defineProperty(window, "DisableDevtool", {
  31. value() {
  32. console.log("window DisableDevtool", ...arguments);
  33. },
  34. writable: false,
  35. });
  36. })();