-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
84 lines (78 loc) · 2.1 KB
/
config.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
export default {
serviceWorkers: {
"twitter.com": "https://twitter.com",
"youtube.com": "https://www.youtube.com"
},
editorSettings: {
"occurrencesHighlight": false,
"scrollBeyondLastLine": false,
"renderLineHighlight": "none",
"selectionHighlight": false,
"quickSuggestions": false,
"overviewRulerLanes": 0,
"language": "language",
"lineNumbers": "off",
"contextmenu": false,
"theme": "theme",
"wordWrap": "on",
"folding": false,
"links": false,
"scrollbar": {
"useShadows": false,
"horizontal": "hidden",
"vertical": "hidden"
},
"minimap": {
"enabled": false
}
},
resourceTypes: [
"main_frame",
"sub_frame",
"stylesheet",
"script",
"image",
"font",
"object",
"xmlhttprequest",
"ping",
"csp_report",
"media",
"websocket",
"webtransport",
"webbundle",
"other"
],
highlightedTokens: [
"allow",
"block",
"for",
"fragment",
"from",
"host",
"password",
"path",
"port",
"query",
"redirect",
"remove",
"scheme",
"set",
"to",
"username"
],
defaultValue: `
# Welcome to the Request Control Editor!
# You can read the full documentation at https://github.com/slymax/request-control. Here are some examples to get you started:
# redirect mobile wikipedia to desktop version
# REDIRECT ^https://(.*?).m.wikipedia.org TO https://$1.wikipedia.org
# use old wikipedia layout
# SET QUERY ?useskin=vector FOR ^https://en.wikipedia.org/wiki
# use old reddit design
# REDIRECT ^https://www.reddit.com TO https://old.reddit.com
# redirect from twitter to nitter
# REDIRECT ^https://twitter.com TO https://nitter.net
# enforce https for all urls
# SET SCHEME https FOR ^http:
`
};