blob: 2f3f4cf4388cc0ce290b9579b5e21fe0fa9b62e8 [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*"],
Adrià Vilanova Martíneza2f79512022-07-10 15:32:32 +020036 "js": ["publicThreadStart.bundle.js"],
37 "run_at": "document_start"
38 },
39 {
40 "matches": ["https://support.google.com/*/thread/*"],
41 "exclude_matches": ["https://support.google.com/s/community*", "https://support.google.com/*/thread/new*"],
avm999632485a3e2021-09-08 22:18:38 +020042 "js": ["publicThread.bundle.js", "mdcStyles.bundle.js"],
avm99963134f1ef2019-03-30 19:05:27 +010043 "run_at": "document_end"
avm99963d0757252019-03-30 20:13:00 +010044 },
45 {
Adrià Vilanova Martínez04ae1032024-02-07 23:42:25 +010046 "matches": ["https://support.google.com/*/community-guide/*", "https://support.google.com/*/community-video/*"],
47 "exclude_matches": ["https://support.google.com/s/community*"],
48 "js": ["publicGuideStart.bundle.js"],
49 "run_at": "document_start"
50 },
51 {
52 "matches": ["https://support.google.com/*/community-guide/*", "https://support.google.com/*/community-video/*"],
53 "exclude_matches": ["https://support.google.com/s/community*"],
54 "js": ["publicGuide.bundle.js"],
55 "run_at": "document_end"
56 },
57 {
avm99963ad65e752020-09-01 00:13:59 +020058 "matches": ["https://support.google.com/s/community*", "https://support.google.com/*/thread/*"],
avm9996336b8dbc2020-09-01 21:16:19 +020059 "exclude_matches": ["https://support.google.com/*/thread/new*"],
Adrià Vilanova Martínez3465e772021-07-11 19:18:41 +020060 "js": ["profileIndicator.bundle.js"]
avm99963ad65e752020-09-01 00:13:59 +020061 },
62 {
Adrià Vilanova Martínez56d4d182021-06-09 14:56:15 +020063 "matches": ["https://support.google.com/*/profile/*", "https://support.google.com/profile/*"],
Adrià Vilanova Martínez3083a432021-06-15 04:24:22 +020064 "all_frames": true,
avm9996337601bc2022-02-21 10:36:45 +010065 "js": ["publicProfileStart.bundle.js"],
66 "run_at": "document_start"
67 },
68 {
69 "matches": ["https://support.google.com/*/profile/*", "https://support.google.com/profile/*"],
70 "all_frames": true,
71 "js": ["publicProfile.bundle.js", "mdcStyles.bundle.js"],
72 "css": ["css/common/forum.css", "css/unifiedprofile.css", "css/extrainfo_perforumstats.css"]
avm99963847ee632019-03-27 00:57:44 +010073 }
74 ],
75 "permissions": [
Adrià Vilanova Martínezd75966e2021-06-09 15:41:31 +020076#if defined(CHROMIUM || GECKO)
77 "https://support.google.com/*",
avm99963bbc88c62020-12-25 03:44:41 +010078#endif
Adrià Vilanova61f782f2024-05-31 22:57:24 +000079#if defined(CHROMIUM || CHROMIUM_MV3)
80 "declarativeNetRequestWithHostAccess",
81#endif
Adrià Vilanova Martínez5f5b3e02023-07-23 00:08:17 +020082#if defined(CHROMIUM_MV3)
83 "scripting",
84#endif
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +020085 "storage",
86 "alarms"
avm99963cbea3142019-03-28 00:48:15 +010087 ],
avm99963bbc88c62020-12-25 03:44:41 +010088#if defined(CHROMIUM_MV3)
89 "host_permissions": [
Adrià Vilanova Martínezd75966e2021-06-09 15:41:31 +020090 "https://support.google.com/*"
avm99963129fb502020-08-28 05:18:53 +020091 ],
avm99963bbc88c62020-12-25 03:44:41 +010092#endif
93 "web_accessible_resources": [
94#if defined(CHROMIUM_MV3)
95 {
96 "resources": [
97#endif
Adrià Vilanova Martínez3465e772021-07-11 19:18:41 +020098 "profileIndicatorInject.bundle.js",
99 "batchLockInject.bundle.js",
Adrià Vilanova Martínez43ec2b92021-07-16 18:44:54 +0200100 "xhrInterceptorInject.bundle.js",
Adrià Vilanova Martínez4f56d562022-01-26 00:23:27 +0100101 "extraInfoInject.bundle.js",
Adrià Vilanova Martínez2d9be8d2022-12-28 00:50:14 +0100102 "litComponentsInject.bundle.js",
Adrià Vilanova Martínez5f5b3e02023-07-23 00:08:17 +0200103 "updateHandlerLitComponents.bundle.js",
Adrià Vilanova Martínezddd30042023-11-01 22:54:17 +0100104 "ccDarkTheme.bundle.css",
Adrià Vilanova Martínez3465e772021-07-11 19:18:41 +0200105
106 "css/profileindicator_inject.css",
Adrià Vilanova Martínez3465e772021-07-11 19:18:41 +0200107 "css/batchlock_inject.css",
108 "css/enhanced_announcements_dot.css",
109 "css/reposition_expand_thread.css",
110 "css/thread_list_avatars.css",
Adrià Vilanova Martínez9d27c212021-12-05 13:54:10 +0100111 "css/autorefresh_list.css",
Adrià Vilanova Martínez7e8796c2022-01-23 21:46:46 +0100112 "css/image_max_height.css",
Adrià Vilanova Martínez2df2f242022-03-01 22:25:27 +0100113 "css/extrainfo.css",
avm9996337601bc2022-02-21 10:36:45 +0100114 "css/extrainfo_perforumstats.css",
Adrià Vilanova Martíneze0d65f22022-11-06 18:49:35 +0100115 "css/workflow_import.css",
Adrià Vilanova Martíneza2f79512022-07-10 15:32:32 +0200116 "css/ui_spacing/shared.css",
117 "css/ui_spacing/console.css",
118 "css/ui_spacing/twbasic.css",
Adrià Vilanova Martínez5a8055b2022-09-29 13:05:19 +0200119 "css/thread_page_design_warning.css",
Adrià Vilanova Martínez2d9be8d2022-12-28 00:50:14 +0100120 "css/thread_toolbar.css",
Adrià Vilanova Martínez115e3d82023-01-10 21:50:06 +0100121 "css/flatten_threads.css",
Adrià Vilanova Martínez2df2f242022-03-01 22:25:27 +0100122
123 "communityConsoleMain.bundle.js.map",
124 "communityConsoleStart.bundle.js.map",
125 "publicForum.bundle.js.map",
126 "publicThread.bundle.js.map",
Adrià Vilanova Martíneza2f79512022-07-10 15:32:32 +0200127 "publicThreadStart.bundle.js.map",
Adrià Vilanova Martínez2df2f242022-03-01 22:25:27 +0100128 "profile.bundle.js.map",
129 "profileIndicator.bundle.js.map",
130 "profileIndicatorInject.bundle.js.map",
131 "batchLockInject.bundle.js.map",
132 "xhrInterceptorInject.bundle.js.map",
133 "extraInfoInject.bundle.js.map",
134 "optionsCommon.bundle.js.map",
135 "mdcStyles.bundle.js.map"
avm99963bbc88c62020-12-25 03:44:41 +0100136#if defined(CHROMIUM_MV3)
137 ],
138 "matches": [
139 "https://support.google.com/*"
140 ]
141 }
142#endif
143 ],
Adrià Vilanova61f782f2024-05-31 22:57:24 +0000144#if defined(CHROMIUM || CHROMIUM_MV3)
145 "declarative_net_request": {
146 "rule_resources": [{
147 "id": "blockDrafts",
148 "enabled": false,
149 "path": "rulesets/blockDrafts.json"
150 }]
151 },
152#endif
Adrià Vilanova Martínezd75966e2021-06-09 15:41:31 +0200153#if defined(CHROMIUM || GECKO)
avm999631a1d2b72020-08-20 03:15:20 +0200154 "browser_action": {},
avm99963bbc88c62020-12-25 03:44:41 +0100155#endif
156#if defined(CHROMIUM_MV3)
157 "action": {},
158#endif
avm999636c357302020-08-09 19:54:08 +0200159#if defined(CHROMIUM)
avm99963a23bf1e2020-12-25 03:02:10 +0100160 "options_page": "options/options.html",
avm999636c357302020-08-09 19:54:08 +0200161#endif
avm99963cbea3142019-03-28 00:48:15 +0100162 "options_ui": {
avm99963a23bf1e2020-12-25 03:02:10 +0100163 "page": "options/options.html",
avm99963cbea3142019-03-28 00:48:15 +0100164 "open_in_tab": false
165 },
166 "background": {
avm99963bbc88c62020-12-25 03:44:41 +0100167#if defined(CHROMIUM || GECKO)
avm999636c357302020-08-09 19:54:08 +0200168#if defined(CHROMIUM)
169 "persistent": false,
170#endif
Adrià Vilanova Martínez54fbad12022-01-04 03:39:04 +0100171 "scripts": ["bg.bundle.js"]
avm99963bbc88c62020-12-25 03:44:41 +0100172#endif
173#if defined(CHROMIUM_MV3)
Adrià Vilanova Martínez54fbad12022-01-04 03:39:04 +0100174 "service_worker": "bg.bundle.js"
avm99963bbc88c62020-12-25 03:44:41 +0100175#endif
avm99963a3d1ef32019-03-30 23:33:29 +0100176 },
Adrià Vilanova Martínez310c2902022-07-04 00:31:41 +0200177#if defined(CHROMIUM)
Adrià Vilanova Martínez82bc9a42022-02-01 12:47:12 +0100178 "minimum_chrome_version": "96",
179#endif
Adrià Vilanova Martínez310c2902022-07-04 00:31:41 +0200180#if defined(CHROMIUM_MV3)
Adrià Vilanova Martínez66836fd2024-05-04 22:43:06 +0200181 "minimum_chrome_version": "105",
Adrià Vilanova Martínez310c2902022-07-04 00:31:41 +0200182#endif
avm999636c357302020-08-09 19:54:08 +0200183#if defined(GECKO)
184 "browser_specific_settings": {
185 "gecko": {
186 "id": "twpowertools@avm99963.com",
Adrià Vilanova Martínez66836fd2024-05-04 22:43:06 +0200187 "strict_min_version": "121.0"
Adrià Vilanova Martínez1a556122023-11-03 17:36:13 +0100188 },
189 "gecko_android": {
Adrià Vilanova Martínez66836fd2024-05-04 22:43:06 +0200190 "strict_min_version": "121.0"
avm999636c357302020-08-09 19:54:08 +0200191 }
192 },
193#endif
avm99963a3d1ef32019-03-30 23:33:29 +0100194 "default_locale": "en"
avm999636a7cbcb2019-03-27 01:16:28 +0100195}