avm99963 | 847ee63 | 2019-03-27 00:57:44 +0100 | [diff] [blame] | 1 | { |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 2 | #if defined(CHROMIUM || GECKO) |
avm99963 | 847ee63 | 2019-03-27 00:57:44 +0100 | [diff] [blame] | 3 | "manifest_version": 2, |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 4 | #endif |
| 5 | #if defined(CHROMIUM_MV3) |
| 6 | "manifest_version": 3, |
| 7 | #endif |
avm99963 | a3d1ef3 | 2019-03-30 23:33:29 +0100 | [diff] [blame] | 8 | "name": "__MSG_appName__", |
avm99963 | 666575f | 2020-08-08 15:40:39 +0200 | [diff] [blame] | 9 | "version": "0", |
Adrià Vilanova Martínez | d75966e | 2021-06-09 15:41:31 +0200 | [diff] [blame] | 10 | #if defined(CHROMIUM || CHROMIUM_MV3) |
avm99963 | 666575f | 2020-08-08 15:40:39 +0200 | [diff] [blame] | 11 | "version_name": "dirty", |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 12 | #endif |
avm99963 | a3d1ef3 | 2019-03-30 23:33:29 +0100 | [diff] [blame] | 13 | "description": "__MSG_appDescription__", |
avm99963 | 847ee63 | 2019-03-27 00:57:44 +0100 | [diff] [blame] | 14 | "icons": { |
avm99963 | d849875 | 2019-03-27 01:09:56 +0100 | [diff] [blame] | 15 | "512": "icons/512.png", |
| 16 | "128": "icons/128.png" |
avm99963 | 847ee63 | 2019-03-27 00:57:44 +0100 | [diff] [blame] | 17 | }, |
| 18 | "content_scripts": [ |
| 19 | { |
| 20 | "matches": ["https://support.google.com/s/community*"], |
avm99963 | 2485a3e | 2021-09-08 22:18:38 +0200 | [diff] [blame] | 21 | "js": ["communityConsoleMain.bundle.js", "mdcStyles.bundle.js"] |
avm99963 | 847ee63 | 2019-03-27 00:57:44 +0100 | [diff] [blame] | 22 | }, |
| 23 | { |
avm99963 | 6d9c5fe | 2019-06-04 00:35:53 +0200 | [diff] [blame] | 24 | "matches": ["https://support.google.com/s/community*"], |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 25 | "js": ["communityConsoleStart.bundle.js"], |
Adrià Vilanova Martínez | 1f65252 | 2021-10-14 00:23:23 +0200 | [diff] [blame] | 26 | "css": ["css/common/console.css", "css/unifiedprofile.css"], |
avm99963 | 6d9c5fe | 2019-06-04 00:35:53 +0200 | [diff] [blame] | 27 | "run_at": "document_start" |
| 28 | }, |
| 29 | { |
avm99963 | 847ee63 | 2019-03-27 00:57:44 +0100 | [diff] [blame] | 30 | "matches": ["https://support.google.com/*/threads*"], |
avm99963 | 2485a3e | 2021-09-08 22:18:38 +0200 | [diff] [blame] | 31 | "js": ["publicForum.bundle.js", "mdcStyles.bundle.js"] |
avm99963 | cbea314 | 2019-03-28 00:48:15 +0100 | [diff] [blame] | 32 | }, |
| 33 | { |
| 34 | "matches": ["https://support.google.com/*/thread/*"], |
avm99963 | 36b8dbc | 2020-09-01 21:16:19 +0200 | [diff] [blame] | 35 | "exclude_matches": ["https://support.google.com/s/community*", "https://support.google.com/*/thread/new*"], |
Adrià Vilanova Martínez | a2f7951 | 2022-07-10 15:32:32 +0200 | [diff] [blame] | 36 | "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*"], |
avm99963 | 2485a3e | 2021-09-08 22:18:38 +0200 | [diff] [blame] | 42 | "js": ["publicThread.bundle.js", "mdcStyles.bundle.js"], |
avm99963 | 134f1ef | 2019-03-30 19:05:27 +0100 | [diff] [blame] | 43 | "run_at": "document_end" |
avm99963 | d075725 | 2019-03-30 20:13:00 +0100 | [diff] [blame] | 44 | }, |
| 45 | { |
Adrià Vilanova Martínez | 04ae103 | 2024-02-07 23:42:25 +0100 | [diff] [blame] | 46 | "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 | { |
avm99963 | ad65e75 | 2020-09-01 00:13:59 +0200 | [diff] [blame] | 58 | "matches": ["https://support.google.com/s/community*", "https://support.google.com/*/thread/*"], |
avm99963 | 36b8dbc | 2020-09-01 21:16:19 +0200 | [diff] [blame] | 59 | "exclude_matches": ["https://support.google.com/*/thread/new*"], |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 60 | "js": ["profileIndicator.bundle.js"] |
avm99963 | ad65e75 | 2020-09-01 00:13:59 +0200 | [diff] [blame] | 61 | }, |
| 62 | { |
Adrià Vilanova Martínez | 56d4d18 | 2021-06-09 14:56:15 +0200 | [diff] [blame] | 63 | "matches": ["https://support.google.com/*/profile/*", "https://support.google.com/profile/*"], |
Adrià Vilanova Martínez | 3083a43 | 2021-06-15 04:24:22 +0200 | [diff] [blame] | 64 | "all_frames": true, |
avm99963 | 37601bc | 2022-02-21 10:36:45 +0100 | [diff] [blame] | 65 | "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"] |
avm99963 | 847ee63 | 2019-03-27 00:57:44 +0100 | [diff] [blame] | 73 | } |
| 74 | ], |
| 75 | "permissions": [ |
Adrià Vilanova Martínez | d75966e | 2021-06-09 15:41:31 +0200 | [diff] [blame] | 76 | #if defined(CHROMIUM || GECKO) |
| 77 | "https://support.google.com/*", |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 78 | #endif |
Adrià Vilanova | 61f782f | 2024-05-31 22:57:24 +0000 | [diff] [blame] | 79 | #if defined(CHROMIUM || CHROMIUM_MV3) |
| 80 | "declarativeNetRequestWithHostAccess", |
| 81 | #endif |
Adrià Vilanova Martínez | 5f5b3e0 | 2023-07-23 00:08:17 +0200 | [diff] [blame] | 82 | #if defined(CHROMIUM_MV3) |
| 83 | "scripting", |
| 84 | #endif |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 85 | "storage", |
| 86 | "alarms" |
avm99963 | cbea314 | 2019-03-28 00:48:15 +0100 | [diff] [blame] | 87 | ], |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 88 | #if defined(CHROMIUM_MV3) |
| 89 | "host_permissions": [ |
Adrià Vilanova Martínez | d75966e | 2021-06-09 15:41:31 +0200 | [diff] [blame] | 90 | "https://support.google.com/*" |
avm99963 | 129fb50 | 2020-08-28 05:18:53 +0200 | [diff] [blame] | 91 | ], |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 92 | #endif |
| 93 | "web_accessible_resources": [ |
| 94 | #if defined(CHROMIUM_MV3) |
| 95 | { |
| 96 | "resources": [ |
| 97 | #endif |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 98 | "profileIndicatorInject.bundle.js", |
| 99 | "batchLockInject.bundle.js", |
Adrià Vilanova Martínez | 43ec2b9 | 2021-07-16 18:44:54 +0200 | [diff] [blame] | 100 | "xhrInterceptorInject.bundle.js", |
Adrià Vilanova Martínez | 4f56d56 | 2022-01-26 00:23:27 +0100 | [diff] [blame] | 101 | "extraInfoInject.bundle.js", |
Adrià Vilanova Martínez | 2d9be8d | 2022-12-28 00:50:14 +0100 | [diff] [blame] | 102 | "litComponentsInject.bundle.js", |
Adrià Vilanova Martínez | 5f5b3e0 | 2023-07-23 00:08:17 +0200 | [diff] [blame] | 103 | "updateHandlerLitComponents.bundle.js", |
Adrià Vilanova Martínez | ddd3004 | 2023-11-01 22:54:17 +0100 | [diff] [blame] | 104 | "ccDarkTheme.bundle.css", |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 105 | |
| 106 | "css/profileindicator_inject.css", |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 107 | "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ínez | 9d27c21 | 2021-12-05 13:54:10 +0100 | [diff] [blame] | 111 | "css/autorefresh_list.css", |
Adrià Vilanova Martínez | 7e8796c | 2022-01-23 21:46:46 +0100 | [diff] [blame] | 112 | "css/image_max_height.css", |
Adrià Vilanova Martínez | 2df2f24 | 2022-03-01 22:25:27 +0100 | [diff] [blame] | 113 | "css/extrainfo.css", |
avm99963 | 37601bc | 2022-02-21 10:36:45 +0100 | [diff] [blame] | 114 | "css/extrainfo_perforumstats.css", |
Adrià Vilanova Martínez | e0d65f2 | 2022-11-06 18:49:35 +0100 | [diff] [blame] | 115 | "css/workflow_import.css", |
Adrià Vilanova Martínez | a2f7951 | 2022-07-10 15:32:32 +0200 | [diff] [blame] | 116 | "css/ui_spacing/shared.css", |
| 117 | "css/ui_spacing/console.css", |
| 118 | "css/ui_spacing/twbasic.css", |
Adrià Vilanova Martínez | 5a8055b | 2022-09-29 13:05:19 +0200 | [diff] [blame] | 119 | "css/thread_page_design_warning.css", |
Adrià Vilanova Martínez | 2d9be8d | 2022-12-28 00:50:14 +0100 | [diff] [blame] | 120 | "css/thread_toolbar.css", |
Adrià Vilanova Martínez | 115e3d8 | 2023-01-10 21:50:06 +0100 | [diff] [blame] | 121 | "css/flatten_threads.css", |
Adrià Vilanova Martínez | 3b585fd | 2024-11-10 19:17:31 +0100 | [diff] [blame] | 122 | "css/fixed_toolbar.css", |
| 123 | "css/increase_contrast.css", |
| 124 | "css/sticky_sidebar_headers.css", |
Adrià Vilanova Martínez | 2df2f24 | 2022-03-01 22:25:27 +0100 | [diff] [blame] | 125 | |
| 126 | "communityConsoleMain.bundle.js.map", |
| 127 | "communityConsoleStart.bundle.js.map", |
| 128 | "publicForum.bundle.js.map", |
| 129 | "publicThread.bundle.js.map", |
Adrià Vilanova Martínez | a2f7951 | 2022-07-10 15:32:32 +0200 | [diff] [blame] | 130 | "publicThreadStart.bundle.js.map", |
Adrià Vilanova Martínez | 2df2f24 | 2022-03-01 22:25:27 +0100 | [diff] [blame] | 131 | "profile.bundle.js.map", |
| 132 | "profileIndicator.bundle.js.map", |
| 133 | "profileIndicatorInject.bundle.js.map", |
| 134 | "batchLockInject.bundle.js.map", |
| 135 | "xhrInterceptorInject.bundle.js.map", |
| 136 | "extraInfoInject.bundle.js.map", |
| 137 | "optionsCommon.bundle.js.map", |
| 138 | "mdcStyles.bundle.js.map" |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 139 | #if defined(CHROMIUM_MV3) |
| 140 | ], |
| 141 | "matches": [ |
| 142 | "https://support.google.com/*" |
| 143 | ] |
| 144 | } |
| 145 | #endif |
| 146 | ], |
Adrià Vilanova | 61f782f | 2024-05-31 22:57:24 +0000 | [diff] [blame] | 147 | #if defined(CHROMIUM || CHROMIUM_MV3) |
| 148 | "declarative_net_request": { |
| 149 | "rule_resources": [{ |
| 150 | "id": "blockDrafts", |
| 151 | "enabled": false, |
| 152 | "path": "rulesets/blockDrafts.json" |
| 153 | }] |
| 154 | }, |
| 155 | #endif |
Adrià Vilanova Martínez | d75966e | 2021-06-09 15:41:31 +0200 | [diff] [blame] | 156 | #if defined(CHROMIUM || GECKO) |
avm99963 | 1a1d2b7 | 2020-08-20 03:15:20 +0200 | [diff] [blame] | 157 | "browser_action": {}, |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 158 | #endif |
| 159 | #if defined(CHROMIUM_MV3) |
| 160 | "action": {}, |
| 161 | #endif |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 162 | #if defined(CHROMIUM) |
avm99963 | a23bf1e | 2020-12-25 03:02:10 +0100 | [diff] [blame] | 163 | "options_page": "options/options.html", |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 164 | #endif |
avm99963 | cbea314 | 2019-03-28 00:48:15 +0100 | [diff] [blame] | 165 | "options_ui": { |
avm99963 | a23bf1e | 2020-12-25 03:02:10 +0100 | [diff] [blame] | 166 | "page": "options/options.html", |
avm99963 | cbea314 | 2019-03-28 00:48:15 +0100 | [diff] [blame] | 167 | "open_in_tab": false |
| 168 | }, |
| 169 | "background": { |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 170 | #if defined(CHROMIUM || GECKO) |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 171 | #if defined(CHROMIUM) |
| 172 | "persistent": false, |
| 173 | #endif |
Adrià Vilanova Martínez | 54fbad1 | 2022-01-04 03:39:04 +0100 | [diff] [blame] | 174 | "scripts": ["bg.bundle.js"] |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 175 | #endif |
| 176 | #if defined(CHROMIUM_MV3) |
Adrià Vilanova Martínez | 54fbad1 | 2022-01-04 03:39:04 +0100 | [diff] [blame] | 177 | "service_worker": "bg.bundle.js" |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 178 | #endif |
avm99963 | a3d1ef3 | 2019-03-30 23:33:29 +0100 | [diff] [blame] | 179 | }, |
Adrià Vilanova Martínez | 310c290 | 2022-07-04 00:31:41 +0200 | [diff] [blame] | 180 | #if defined(CHROMIUM) |
Adrià Vilanova Martínez | 82bc9a4 | 2022-02-01 12:47:12 +0100 | [diff] [blame] | 181 | "minimum_chrome_version": "96", |
| 182 | #endif |
Adrià Vilanova Martínez | 310c290 | 2022-07-04 00:31:41 +0200 | [diff] [blame] | 183 | #if defined(CHROMIUM_MV3) |
Adrià Vilanova Martínez | 66836fd | 2024-05-04 22:43:06 +0200 | [diff] [blame] | 184 | "minimum_chrome_version": "105", |
Adrià Vilanova Martínez | 310c290 | 2022-07-04 00:31:41 +0200 | [diff] [blame] | 185 | #endif |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 186 | #if defined(GECKO) |
| 187 | "browser_specific_settings": { |
| 188 | "gecko": { |
| 189 | "id": "twpowertools@avm99963.com", |
Adrià Vilanova Martínez | 66836fd | 2024-05-04 22:43:06 +0200 | [diff] [blame] | 190 | "strict_min_version": "121.0" |
Adrià Vilanova Martínez | 1a55612 | 2023-11-03 17:36:13 +0100 | [diff] [blame] | 191 | }, |
| 192 | "gecko_android": { |
Adrià Vilanova Martínez | 66836fd | 2024-05-04 22:43:06 +0200 | [diff] [blame] | 193 | "strict_min_version": "121.0" |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 194 | } |
| 195 | }, |
| 196 | #endif |
avm99963 | a3d1ef3 | 2019-03-30 23:33:29 +0100 | [diff] [blame] | 197 | "default_locale": "en" |
avm99963 | 6a7cbcb | 2019-03-27 01:16:28 +0100 | [diff] [blame] | 198 | } |