blob: b4f02817739f75a8fb004361333e2779cabc219b [file] [log] [blame]
avm99963847ee632019-03-27 00:57:44 +01001{
avm99963bbc88c62020-12-25 03:44:41 +01002#if defined(CHROMIUM || GECKO)
avm99963847ee632019-03-27 00:57:44 +01003 "manifest_version": 2,
avm99963bbc88c62020-12-25 03:44:41 +01004#endif
5#if defined(CHROMIUM_MV3)
6 "manifest_version": 3,
7#endif
avm99963a3d1ef32019-03-30 23:33:29 +01008 "name": "__MSG_appName__",
avm99963666575f2020-08-08 15:40:39 +02009 "version": "0",
Adrià Vilanova Martínezd75966e2021-06-09 15:41:31 +020010#if defined(CHROMIUM || CHROMIUM_MV3)
avm99963666575f2020-08-08 15:40:39 +020011 "version_name": "dirty",
avm999636c357302020-08-09 19:54:08 +020012#endif
avm99963a3d1ef32019-03-30 23:33:29 +010013 "description": "__MSG_appDescription__",
avm99963847ee632019-03-27 00:57:44 +010014 "icons": {
avm99963d8498752019-03-27 01:09:56 +010015 "512": "icons/512.png",
16 "128": "icons/128.png"
avm99963847ee632019-03-27 00:57:44 +010017 },
18 "content_scripts": [
19 {
20 "matches": ["https://support.google.com/s/community*"],
avm999632485a3e2021-09-08 22:18:38 +020021 "js": ["communityConsoleMain.bundle.js", "mdcStyles.bundle.js"]
avm99963847ee632019-03-27 00:57:44 +010022 },
23 {
avm999636d9c5fe2019-06-04 00:35:53 +020024 "matches": ["https://support.google.com/s/community*"],
Adrià Vilanova Martínez3465e772021-07-11 19:18:41 +020025 "js": ["communityConsoleStart.bundle.js"],
Adrià Vilanova Martínez1f652522021-10-14 00:23:23 +020026 "css": ["css/common/console.css", "css/unifiedprofile.css"],
avm999636d9c5fe2019-06-04 00:35:53 +020027 "run_at": "document_start"
28 },
29 {
avm99963847ee632019-03-27 00:57:44 +010030 "matches": ["https://support.google.com/*/threads*"],
avm999632485a3e2021-09-08 22:18:38 +020031 "js": ["publicForum.bundle.js", "mdcStyles.bundle.js"]
avm99963cbea3142019-03-28 00:48:15 +010032 },
33 {
34 "matches": ["https://support.google.com/*/thread/*"],
avm9996336b8dbc2020-09-01 21:16:19 +020035 "exclude_matches": ["https://support.google.com/s/community*", "https://support.google.com/*/thread/new*"],
avm999632485a3e2021-09-08 22:18:38 +020036 "js": ["publicThread.bundle.js", "mdcStyles.bundle.js"],
avm99963134f1ef2019-03-30 19:05:27 +010037 "run_at": "document_end"
avm99963d0757252019-03-30 20:13:00 +010038 },
39 {
avm99963ad65e752020-09-01 00:13:59 +020040 "matches": ["https://support.google.com/s/community*", "https://support.google.com/*/thread/*"],
avm9996336b8dbc2020-09-01 21:16:19 +020041 "exclude_matches": ["https://support.google.com/*/thread/new*"],
Adrià Vilanova Martínez3465e772021-07-11 19:18:41 +020042 "js": ["profileIndicator.bundle.js"]
avm99963ad65e752020-09-01 00:13:59 +020043 },
44 {
Adrià Vilanova Martínez56d4d182021-06-09 14:56:15 +020045 "matches": ["https://support.google.com/*/profile/*", "https://support.google.com/profile/*"],
Adrià Vilanova Martínez3083a432021-06-15 04:24:22 +020046 "all_frames": true,
avm9996337601bc2022-02-21 10:36:45 +010047 "js": ["publicProfileStart.bundle.js"],
48 "run_at": "document_start"
49 },
50 {
51 "matches": ["https://support.google.com/*/profile/*", "https://support.google.com/profile/*"],
52 "all_frames": true,
53 "js": ["publicProfile.bundle.js", "mdcStyles.bundle.js"],
54 "css": ["css/common/forum.css", "css/unifiedprofile.css", "css/extrainfo_perforumstats.css"]
avm99963847ee632019-03-27 00:57:44 +010055 }
56 ],
57 "permissions": [
Adrià Vilanova Martínezd75966e2021-06-09 15:41:31 +020058#if defined(CHROMIUM || GECKO)
59 "https://support.google.com/*",
avm99963bbc88c62020-12-25 03:44:41 +010060#endif
Adrià Vilanova Martíneza4dd5fd2022-01-05 04:23:44 +010061#if defined(CHROMIUM || CHROMIUM_MV3)
62 "declarativeNetRequestWithHostAccess",
63#endif
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +020064 "storage",
65 "alarms"
avm99963cbea3142019-03-28 00:48:15 +010066 ],
avm99963bbc88c62020-12-25 03:44:41 +010067#if defined(CHROMIUM_MV3)
68 "host_permissions": [
Adrià Vilanova Martínezd75966e2021-06-09 15:41:31 +020069 "https://support.google.com/*"
avm99963129fb502020-08-28 05:18:53 +020070 ],
avm99963bbc88c62020-12-25 03:44:41 +010071#endif
72 "web_accessible_resources": [
73#if defined(CHROMIUM_MV3)
74 {
75 "resources": [
76#endif
Adrià Vilanova Martínez3465e772021-07-11 19:18:41 +020077 "profileIndicatorInject.bundle.js",
78 "batchLockInject.bundle.js",
Adrià Vilanova Martínez43ec2b92021-07-16 18:44:54 +020079 "xhrInterceptorInject.bundle.js",
Adrià Vilanova Martínez4f56d562022-01-26 00:23:27 +010080 "extraInfoInject.bundle.js",
Adrià Vilanova Martínez3465e772021-07-11 19:18:41 +020081
82 "css/profileindicator_inject.css",
83 "css/ccdarktheme.css",
84 "css/batchlock_inject.css",
85 "css/enhanced_announcements_dot.css",
86 "css/reposition_expand_thread.css",
87 "css/thread_list_avatars.css",
Adrià Vilanova Martínez9d27c212021-12-05 13:54:10 +010088 "css/autorefresh_list.css",
Adrià Vilanova Martínez7e8796c2022-01-23 21:46:46 +010089 "css/image_max_height.css",
Adrià Vilanova Martínez2df2f242022-03-01 22:25:27 +010090 "css/extrainfo.css",
avm9996337601bc2022-02-21 10:36:45 +010091 "css/extrainfo_perforumstats.css",
Adrià Vilanova Martínez2df2f242022-03-01 22:25:27 +010092
93 "communityConsoleMain.bundle.js.map",
94 "communityConsoleStart.bundle.js.map",
95 "publicForum.bundle.js.map",
96 "publicThread.bundle.js.map",
97 "profile.bundle.js.map",
98 "profileIndicator.bundle.js.map",
99 "profileIndicatorInject.bundle.js.map",
100 "batchLockInject.bundle.js.map",
101 "xhrInterceptorInject.bundle.js.map",
102 "extraInfoInject.bundle.js.map",
103 "optionsCommon.bundle.js.map",
104 "mdcStyles.bundle.js.map"
avm99963bbc88c62020-12-25 03:44:41 +0100105#if defined(CHROMIUM_MV3)
106 ],
107 "matches": [
108 "https://support.google.com/*"
109 ]
110 }
111#endif
112 ],
Adrià Vilanova Martíneza4dd5fd2022-01-05 04:23:44 +0100113#if defined(CHROMIUM || CHROMIUM_MV3)
114 "declarative_net_request": {
115 "rule_resources": [{
116 "id": "blockDrafts",
117 "enabled": false,
118 "path": "rulesets/blockDrafts.json"
119 }]
120 },
121#endif
Adrià Vilanova Martínezd75966e2021-06-09 15:41:31 +0200122#if defined(CHROMIUM || GECKO)
avm999631a1d2b72020-08-20 03:15:20 +0200123 "browser_action": {},
avm99963bbc88c62020-12-25 03:44:41 +0100124#endif
125#if defined(CHROMIUM_MV3)
126 "action": {},
127#endif
avm999636c357302020-08-09 19:54:08 +0200128#if defined(CHROMIUM)
avm99963a23bf1e2020-12-25 03:02:10 +0100129 "options_page": "options/options.html",
avm999636c357302020-08-09 19:54:08 +0200130#endif
avm99963cbea3142019-03-28 00:48:15 +0100131 "options_ui": {
avm99963a23bf1e2020-12-25 03:02:10 +0100132 "page": "options/options.html",
avm99963cbea3142019-03-28 00:48:15 +0100133 "open_in_tab": false
134 },
135 "background": {
avm99963bbc88c62020-12-25 03:44:41 +0100136#if defined(CHROMIUM || GECKO)
avm999636c357302020-08-09 19:54:08 +0200137#if defined(CHROMIUM)
138 "persistent": false,
139#endif
Adrià Vilanova Martínez54fbad12022-01-04 03:39:04 +0100140 "scripts": ["bg.bundle.js"]
avm99963bbc88c62020-12-25 03:44:41 +0100141#endif
142#if defined(CHROMIUM_MV3)
Adrià Vilanova Martínez54fbad12022-01-04 03:39:04 +0100143 "service_worker": "bg.bundle.js"
avm99963bbc88c62020-12-25 03:44:41 +0100144#endif
avm99963a3d1ef32019-03-30 23:33:29 +0100145 },
Adrià Vilanova Martínez82bc9a42022-02-01 12:47:12 +0100146#if defined(CHROMIUM || CHROMIUM_MV3)
147 "minimum_chrome_version": "96",
148#endif
avm999636c357302020-08-09 19:54:08 +0200149#if defined(GECKO)
150 "browser_specific_settings": {
151 "gecko": {
152 "id": "twpowertools@avm99963.com",
avm99963f478c362020-12-02 01:15:41 +0100153 "strict_min_version": "57.0"
avm999636c357302020-08-09 19:54:08 +0200154 }
155 },
156#endif
avm99963a3d1ef32019-03-30 23:33:29 +0100157 "default_locale": "en"
avm999636a7cbcb2019-03-27 01:16:28 +0100158}