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*"], |
avm99963 | 2485a3e | 2021-09-08 22:18:38 +0200 | [diff] [blame] | 36 | "js": ["publicThread.bundle.js", "mdcStyles.bundle.js"], |
avm99963 | 134f1ef | 2019-03-30 19:05:27 +0100 | [diff] [blame] | 37 | "run_at": "document_end" |
avm99963 | d075725 | 2019-03-30 20:13:00 +0100 | [diff] [blame] | 38 | }, |
| 39 | { |
avm99963 | ad65e75 | 2020-09-01 00:13:59 +0200 | [diff] [blame] | 40 | "matches": ["https://support.google.com/s/community*", "https://support.google.com/*/thread/*"], |
avm99963 | 36b8dbc | 2020-09-01 21:16:19 +0200 | [diff] [blame] | 41 | "exclude_matches": ["https://support.google.com/*/thread/new*"], |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 42 | "js": ["profileIndicator.bundle.js"] |
avm99963 | ad65e75 | 2020-09-01 00:13:59 +0200 | [diff] [blame] | 43 | }, |
| 44 | { |
Adrià Vilanova Martínez | 56d4d18 | 2021-06-09 14:56:15 +0200 | [diff] [blame] | 45 | "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] | 46 | "all_frames": true, |
avm99963 | 37601bc | 2022-02-21 10:36:45 +0100 | [diff] [blame^] | 47 | "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"] |
avm99963 | 847ee63 | 2019-03-27 00:57:44 +0100 | [diff] [blame] | 55 | } |
| 56 | ], |
| 57 | "permissions": [ |
Adrià Vilanova Martínez | d75966e | 2021-06-09 15:41:31 +0200 | [diff] [blame] | 58 | #if defined(CHROMIUM || GECKO) |
| 59 | "https://support.google.com/*", |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 60 | #endif |
Adrià Vilanova Martínez | a4dd5fd | 2022-01-05 04:23:44 +0100 | [diff] [blame] | 61 | #if defined(CHROMIUM || CHROMIUM_MV3) |
| 62 | "declarativeNetRequestWithHostAccess", |
| 63 | #endif |
Adrià Vilanova Martínez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 64 | "storage", |
| 65 | "alarms" |
avm99963 | cbea314 | 2019-03-28 00:48:15 +0100 | [diff] [blame] | 66 | ], |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 67 | #if defined(CHROMIUM_MV3) |
| 68 | "host_permissions": [ |
Adrià Vilanova Martínez | d75966e | 2021-06-09 15:41:31 +0200 | [diff] [blame] | 69 | "https://support.google.com/*" |
avm99963 | 129fb50 | 2020-08-28 05:18:53 +0200 | [diff] [blame] | 70 | ], |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 71 | #endif |
| 72 | "web_accessible_resources": [ |
| 73 | #if defined(CHROMIUM_MV3) |
| 74 | { |
| 75 | "resources": [ |
| 76 | #endif |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 77 | "profileIndicatorInject.bundle.js", |
| 78 | "batchLockInject.bundle.js", |
Adrià Vilanova Martínez | 43ec2b9 | 2021-07-16 18:44:54 +0200 | [diff] [blame] | 79 | "xhrInterceptorInject.bundle.js", |
Adrià Vilanova Martínez | 4f56d56 | 2022-01-26 00:23:27 +0100 | [diff] [blame] | 80 | "extraInfoInject.bundle.js", |
Adrià Vilanova Martínez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 81 | |
| 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ínez | 9d27c21 | 2021-12-05 13:54:10 +0100 | [diff] [blame] | 88 | "css/autorefresh_list.css", |
Adrià Vilanova Martínez | 7e8796c | 2022-01-23 21:46:46 +0100 | [diff] [blame] | 89 | "css/image_max_height.css", |
Adrià Vilanova Martínez | 2df2f24 | 2022-03-01 22:25:27 +0100 | [diff] [blame] | 90 | "css/extrainfo.css", |
avm99963 | 37601bc | 2022-02-21 10:36:45 +0100 | [diff] [blame^] | 91 | "css/extrainfo_perforumstats.css", |
Adrià Vilanova Martínez | 2df2f24 | 2022-03-01 22:25:27 +0100 | [diff] [blame] | 92 | |
| 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" |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 105 | #if defined(CHROMIUM_MV3) |
| 106 | ], |
| 107 | "matches": [ |
| 108 | "https://support.google.com/*" |
| 109 | ] |
| 110 | } |
| 111 | #endif |
| 112 | ], |
Adrià Vilanova Martínez | a4dd5fd | 2022-01-05 04:23:44 +0100 | [diff] [blame] | 113 | #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ínez | d75966e | 2021-06-09 15:41:31 +0200 | [diff] [blame] | 122 | #if defined(CHROMIUM || GECKO) |
avm99963 | 1a1d2b7 | 2020-08-20 03:15:20 +0200 | [diff] [blame] | 123 | "browser_action": {}, |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 124 | #endif |
| 125 | #if defined(CHROMIUM_MV3) |
| 126 | "action": {}, |
| 127 | #endif |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 128 | #if defined(CHROMIUM) |
avm99963 | a23bf1e | 2020-12-25 03:02:10 +0100 | [diff] [blame] | 129 | "options_page": "options/options.html", |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 130 | #endif |
avm99963 | cbea314 | 2019-03-28 00:48:15 +0100 | [diff] [blame] | 131 | "options_ui": { |
avm99963 | a23bf1e | 2020-12-25 03:02:10 +0100 | [diff] [blame] | 132 | "page": "options/options.html", |
avm99963 | cbea314 | 2019-03-28 00:48:15 +0100 | [diff] [blame] | 133 | "open_in_tab": false |
| 134 | }, |
| 135 | "background": { |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 136 | #if defined(CHROMIUM || GECKO) |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 137 | #if defined(CHROMIUM) |
| 138 | "persistent": false, |
| 139 | #endif |
Adrià Vilanova Martínez | 54fbad1 | 2022-01-04 03:39:04 +0100 | [diff] [blame] | 140 | "scripts": ["bg.bundle.js"] |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 141 | #endif |
| 142 | #if defined(CHROMIUM_MV3) |
Adrià Vilanova Martínez | 54fbad1 | 2022-01-04 03:39:04 +0100 | [diff] [blame] | 143 | "service_worker": "bg.bundle.js" |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 144 | #endif |
avm99963 | a3d1ef3 | 2019-03-30 23:33:29 +0100 | [diff] [blame] | 145 | }, |
Adrià Vilanova Martínez | 82bc9a4 | 2022-02-01 12:47:12 +0100 | [diff] [blame] | 146 | #if defined(CHROMIUM || CHROMIUM_MV3) |
| 147 | "minimum_chrome_version": "96", |
| 148 | #endif |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 149 | #if defined(GECKO) |
| 150 | "browser_specific_settings": { |
| 151 | "gecko": { |
| 152 | "id": "twpowertools@avm99963.com", |
avm99963 | f478c36 | 2020-12-02 01:15:41 +0100 | [diff] [blame] | 153 | "strict_min_version": "57.0" |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 154 | } |
| 155 | }, |
| 156 | #endif |
avm99963 | a3d1ef3 | 2019-03-30 23:33:29 +0100 | [diff] [blame] | 157 | "default_locale": "en" |
avm99963 | 6a7cbcb | 2019-03-27 01:16:28 +0100 | [diff] [blame] | 158 | } |