blob: 5a91bdfb739c10aa06cc5d4bec5befd65cfe729c [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",
avm99963bbc88c62020-12-25 03:44:41 +010010#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*"],
avm99963943b8492020-08-31 23:40:43 +020021 "js": ["common/content_scripts.js", "content_scripts/console_inject.js"]
avm99963847ee632019-03-27 00:57:44 +010022 },
23 {
avm999636d9c5fe2019-06-04 00:35:53 +020024 "matches": ["https://support.google.com/s/community*"],
avm999630bc113a2020-09-07 13:02:11 +020025 "js": ["common/content_scripts.js", "content_scripts/console_inject_start.js"],
avm9996306167752020-09-08 00:50:36 +020026 "css": ["common/console.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*"],
avm99963a560aba2020-08-31 13:32:29 +020031 "js": ["content_scripts/forum_inject.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*"],
avm99963943b8492020-08-31 23:40:43 +020036 "js": ["common/content_scripts.js", "content_scripts/thread_inject.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*"],
avm999633e238882020-12-07 18:38:54 +010042 "js": ["common/content_scripts.js", "common/cs_event_listener.js", "content_scripts/profileindicator_inject.js"]
avm99963ad65e752020-09-01 00:13:59 +020043 },
44 {
avm99963d0757252019-03-30 20:13:00 +010045 "matches": ["https://support.google.com/*/profile/*"],
avm9996306167752020-09-08 00:50:36 +020046 "js": ["common/content_scripts.js", "content_scripts/profile_inject.js"],
47 "css": ["common/forum.css"]
avm99963847ee632019-03-27 00:57:44 +010048 }
49 ],
50 "permissions": [
avm99963bbc88c62020-12-25 03:44:41 +010051#if defined(CHROMIUM || GECKO)
avm99963847ee632019-03-27 00:57:44 +010052 "https://support.google.com/s/community*",
avm99963cbea3142019-03-28 00:48:15 +010053 "https://support.google.com/*/threads*",
54 "https://support.google.com/*/thread/*",
avm99963bbc88c62020-12-25 03:44:41 +010055#endif
avm99963cbea3142019-03-28 00:48:15 +010056 "storage"
57 ],
avm99963bbc88c62020-12-25 03:44:41 +010058#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/*"
avm99963129fb502020-08-28 05:18:53 +020063 ],
avm99963bbc88c62020-12-25 03:44:41 +010064#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",
avm99963698d3762021-02-16 01:19:54 +010073 "injections/batchlock_inject.js",
avm99963d98126f2021-02-17 10:44:36 +010074 "injections/enhanced_announcements_dot.css",
75 "injections/reposition_expand_thread.css"
avm99963bbc88c62020-12-25 03:44:41 +010076#if defined(CHROMIUM_MV3)
77 ],
78 "matches": [
79 "https://support.google.com/*"
80 ]
81 }
82#endif
83 ],
84#if defined(CHROMIUM || GECKO)
avm999631a1d2b72020-08-20 03:15:20 +020085 "browser_action": {},
avm99963bbc88c62020-12-25 03:44:41 +010086#endif
87#if defined(CHROMIUM_MV3)
88 "action": {},
89#endif
avm999636c357302020-08-09 19:54:08 +020090#if defined(CHROMIUM)
avm99963a23bf1e2020-12-25 03:02:10 +010091 "options_page": "options/options.html",
avm999636c357302020-08-09 19:54:08 +020092#endif
avm99963cbea3142019-03-28 00:48:15 +010093 "options_ui": {
avm99963a23bf1e2020-12-25 03:02:10 +010094 "page": "options/options.html",
avm99963cbea3142019-03-28 00:48:15 +010095 "open_in_tab": false
96 },
97 "background": {
avm99963bbc88c62020-12-25 03:44:41 +010098#if defined(CHROMIUM || GECKO)
avm999636c357302020-08-09 19:54:08 +020099#if defined(CHROMIUM)
100 "persistent": false,
101#endif
avm999634c1a6792020-08-31 21:30:42 +0200102 "scripts": [
103 "common/common.js",
104 "background.js"
105 ]
avm99963bbc88c62020-12-25 03:44:41 +0100106#endif
107#if defined(CHROMIUM_MV3)
108 "service_worker": "sw.js"
109#endif
avm99963a3d1ef32019-03-30 23:33:29 +0100110 },
avm999636c357302020-08-09 19:54:08 +0200111#if defined(GECKO)
112 "browser_specific_settings": {
113 "gecko": {
114 "id": "twpowertools@avm99963.com",
avm99963f478c362020-12-02 01:15:41 +0100115 "strict_min_version": "57.0"
avm999636c357302020-08-09 19:54:08 +0200116 }
117 },
118#endif
avm99963a3d1ef32019-03-30 23:33:29 +0100119 "default_locale": "en"
avm999636a7cbcb2019-03-27 01:16:28 +0100120}