forked from jae-jae/Userscript-Plus
-
-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathheader.js
More file actions
30 lines (30 loc) · 1.01 KB
/
Copy pathheader.js
File metadata and controls
30 lines (30 loc) · 1.01 KB
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
{{metadata}}
'use strict';
(() => {
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 };
}
if (!(typeof userjs === 'object' && userjs.UserJS && window && window.self === window.top)) {
return;
}
/**
* To compile this CSS `pnpm run build:Sass`
* @desc Link to uncompiled Cascading Style Sheet
* @link https://github.com/magicoflolis/Userscript-Plus/tree/master/src/sass
*/
const main_css = `{{mainCSS}}`;
/**
* Link to uncompressed locales + compiler
* @link https://github.com/magicoflolis/Userscript-Plus/tree/master/src/_locales
* @link https://github.com/magicoflolis/Userscript-Plus/blob/master/tools/languageLoader.js
*/
const languageList = {{languageList}};
{{code}}
})();