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