forked from jae-jae/Userscript-Plus
-
-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathmu.js
More file actions
19 lines (16 loc) · 665 Bytes
/
Copy pathmu.js
File metadata and controls
19 lines (16 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* eslint-disable prefer-const, no-unused-vars */
'use strict';
/** @type { import("../typings/WebExt.d.ts").webext } */
let webext = (self.webext = typeof browser == 'undefined' ? chrome : browser);
/** @type { import("../typings/WebExt.d.ts").userjs } */
let userjs = (self.userjs = {});
/** Skip text/plain documents */
if (
(document instanceof Document ||
(document instanceof XMLDocument && document.createElement('div') instanceof HTMLDivElement)) &&
/^image\/|^text\/plain/.test(document.contentType || '') === false &&
(self.userjs instanceof Object === false || userjs.UserJS !== true)
) {
userjs = self.userjs = { UserJS: true };
}
void 0;