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", |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [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 | 943b849 | 2020-08-31 23:40:43 +0200 | [diff] [blame] | 21 | "js": ["common/content_scripts.js", "content_scripts/console_inject.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*"], |
avm99963 | 0bc113a | 2020-09-07 13:02:11 +0200 | [diff] [blame] | 25 | "js": ["common/content_scripts.js", "content_scripts/console_inject_start.js"], |
avm99963 | 0616775 | 2020-09-08 00:50:36 +0200 | [diff] [blame] | 26 | "css": ["common/console.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 | a560aba | 2020-08-31 13:32:29 +0200 | [diff] [blame] | 31 | "js": ["content_scripts/forum_inject.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 | 943b849 | 2020-08-31 23:40:43 +0200 | [diff] [blame] | 36 | "js": ["common/content_scripts.js", "content_scripts/thread_inject.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*"], |
avm99963 | 3e23888 | 2020-12-07 18:38:54 +0100 | [diff] [blame] | 42 | "js": ["common/content_scripts.js", "common/cs_event_listener.js", "content_scripts/profileindicator_inject.js"] |
avm99963 | ad65e75 | 2020-09-01 00:13:59 +0200 | [diff] [blame] | 43 | }, |
| 44 | { |
avm99963 | d075725 | 2019-03-30 20:13:00 +0100 | [diff] [blame] | 45 | "matches": ["https://support.google.com/*/profile/*"], |
avm99963 | 0616775 | 2020-09-08 00:50:36 +0200 | [diff] [blame] | 46 | "js": ["common/content_scripts.js", "content_scripts/profile_inject.js"], |
| 47 | "css": ["common/forum.css"] |
avm99963 | 847ee63 | 2019-03-27 00:57:44 +0100 | [diff] [blame] | 48 | } |
| 49 | ], |
| 50 | "permissions": [ |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 51 | #if defined(CHROMIUM || GECKO) |
avm99963 | 847ee63 | 2019-03-27 00:57:44 +0100 | [diff] [blame] | 52 | "https://support.google.com/s/community*", |
avm99963 | cbea314 | 2019-03-28 00:48:15 +0100 | [diff] [blame] | 53 | "https://support.google.com/*/threads*", |
| 54 | "https://support.google.com/*/thread/*", |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 55 | #endif |
avm99963 | cbea314 | 2019-03-28 00:48:15 +0100 | [diff] [blame] | 56 | "storage" |
| 57 | ], |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 58 | #if defined(CHROMIUM_MV3) |
| 59 | "host_permissions": [ |
| 60 | "https://support.google.com/s/community*", |
| 61 | "https://support.google.com/*/threads*", |
| 62 | "https://support.google.com/*/thread/*" |
avm99963 | 129fb50 | 2020-08-28 05:18:53 +0200 | [diff] [blame] | 63 | ], |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 64 | #endif |
| 65 | "web_accessible_resources": [ |
| 66 | #if defined(CHROMIUM_MV3) |
| 67 | { |
| 68 | "resources": [ |
| 69 | #endif |
| 70 | "injections/profileindicator_inject.js", |
| 71 | "injections/profileindicator_inject.css", |
| 72 | "injections/ccdarktheme.css", |
avm99963 | 698d376 | 2021-02-16 01:19:54 +0100 | [diff] [blame] | 73 | "injections/batchlock_inject.js", |
avm99963 | d98126f | 2021-02-17 10:44:36 +0100 | [diff] [blame] | 74 | "injections/enhanced_announcements_dot.css", |
avm99963 | 3eae452 | 2021-04-22 01:14:27 +0200 | [diff] [blame] | 75 | "injections/reposition_expand_thread.css", |
avm99963 | a007d49 | 2021-05-02 12:32:03 +0200 | [diff] [blame] | 76 | "injections/thread_list_avatars.css", |
| 77 | "injections/autorefresh_list.css" |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 78 | #if defined(CHROMIUM_MV3) |
| 79 | ], |
| 80 | "matches": [ |
| 81 | "https://support.google.com/*" |
| 82 | ] |
| 83 | } |
| 84 | #endif |
| 85 | ], |
| 86 | #if defined(CHROMIUM || GECKO) |
avm99963 | 1a1d2b7 | 2020-08-20 03:15:20 +0200 | [diff] [blame] | 87 | "browser_action": {}, |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 88 | #endif |
| 89 | #if defined(CHROMIUM_MV3) |
| 90 | "action": {}, |
| 91 | #endif |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 92 | #if defined(CHROMIUM) |
avm99963 | a23bf1e | 2020-12-25 03:02:10 +0100 | [diff] [blame] | 93 | "options_page": "options/options.html", |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 94 | #endif |
avm99963 | cbea314 | 2019-03-28 00:48:15 +0100 | [diff] [blame] | 95 | "options_ui": { |
avm99963 | a23bf1e | 2020-12-25 03:02:10 +0100 | [diff] [blame] | 96 | "page": "options/options.html", |
avm99963 | cbea314 | 2019-03-28 00:48:15 +0100 | [diff] [blame] | 97 | "open_in_tab": false |
| 98 | }, |
| 99 | "background": { |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 100 | #if defined(CHROMIUM || GECKO) |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 101 | #if defined(CHROMIUM) |
| 102 | "persistent": false, |
| 103 | #endif |
avm99963 | 4c1a679 | 2020-08-31 21:30:42 +0200 | [diff] [blame] | 104 | "scripts": [ |
| 105 | "common/common.js", |
| 106 | "background.js" |
| 107 | ] |
avm99963 | bbc88c6 | 2020-12-25 03:44:41 +0100 | [diff] [blame] | 108 | #endif |
| 109 | #if defined(CHROMIUM_MV3) |
| 110 | "service_worker": "sw.js" |
| 111 | #endif |
avm99963 | a3d1ef3 | 2019-03-30 23:33:29 +0100 | [diff] [blame] | 112 | }, |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 113 | #if defined(GECKO) |
| 114 | "browser_specific_settings": { |
| 115 | "gecko": { |
| 116 | "id": "twpowertools@avm99963.com", |
avm99963 | f478c36 | 2020-12-02 01:15:41 +0100 | [diff] [blame] | 117 | "strict_min_version": "57.0" |
avm99963 | 6c35730 | 2020-08-09 19:54:08 +0200 | [diff] [blame] | 118 | } |
| 119 | }, |
| 120 | #endif |
avm99963 | a3d1ef3 | 2019-03-30 23:33:29 +0100 | [diff] [blame] | 121 | "default_locale": "en" |
avm99963 | 6a7cbcb | 2019-03-27 01:16:28 +0100 | [diff] [blame] | 122 | } |