FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Userscript-Plus/src/UserJS/header.js at userscript · magicoflolis/Userscript-Plus · GitHub
magicoflolis
/
Userscript-Plus
Public
forked from
jae-jae/Userscript-Plus
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
44
Star
415
Code
Issues
3
Pull requests
2
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
Userscript-Plus
/
src
/
UserJS
/
header.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
48 lines (48 loc) · 1.39 KB
Breadcrumbs
Userscript-Plus
/
src
/
UserJS
/
header.js
Copy path
File metadata and controls
48 lines (48 loc) · 1.39 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
37
38
39
40
41
42
43
44
45
46
47
48
[
[
metadata
]
]
(
(
)
=>
{
'use strict'
;
/******************************************************************************/
/**
* Uncompressed locales + compiler
*
* [_locales](https://github.com/magicoflolis/Userscript-Plus/tree/master/src/_locales)
*
* [languageLoader.js](https://github.com/magicoflolis/Userscript-Plus/blob/master/tools/languageLoader.js)
*/
const
translations
=
[
[
languageList
]
]
;
/**
* To compile this CSS `pnpm run build:Sass`
*
* [Uncompiled Cascading Style Sheet](https://github.com/magicoflolis/Userscript-Plus/tree/master/src/sass)
*/
const
main_css
=
`[[mainCSS]]`
;
const
inIframe
=
(
)
=>
{
try
{
return
window
.
self
!==
window
.
top
;
}
catch
(
e
)
{
return
true
;
}
}
if
(
inIframe
(
)
)
{
return
;
}
let
userjs
=
self
.
userjs
;
/**
* Skip text/plain documents, based on uBlock Origin `vapi.js` file
*
* [Source Code](https://github.com/gorhill/uBlock/blob/master/platform/common/vapi.js)
*/
if
(
(
document
instanceof
Document
||
(
document
instanceof
XMLDocument
&&
document
.
createElement
(
'div'
)
instanceof
HTMLDivElement
)
)
&&
/
^
i
m
a
g
e
\/
|
^
t
e
x
t
\/
p
l
a
i
n
/
.
test
(
document
.
contentType
||
''
)
===
false
&&
(
self
.
userjs
instanceof
Object
===
false
||
userjs
.
UserJS
!==
true
)
)
{
userjs
=
self
.
userjs
=
{
UserJS
:
true
}
;
}
if
(
!
(
typeof
userjs
===
'object'
&&
userjs
.
UserJS
)
)
{
return
;
}
/******************************************************************************/
[
[
code
]
]
}
)
(
)
;
Back
|
FazBrowse Home
|
New Git URL