File tree Expand file tree Collapse file tree 4 files changed +22
-16
lines changed Expand file tree Collapse file tree 4 files changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const isProduction = process.env.NODE_ENV === 'production';
24
24
const enableContributions =
25
25
( process . env . ENABLE_CONTRIBUTIONS || 'true' ) === 'true' ;
26
26
27
- const mv3 = [ 'chrome' ] . includes ( targetEnv ) ;
27
+ const mv3 = [ 'chrome' , 'edge' , 'opera' ] . includes ( targetEnv ) ;
28
28
29
29
const distDir = path . join ( __dirname , 'dist' , targetEnv ) ;
30
30
Original file line number Diff line number Diff line change 1
1
{
2
- "manifest_version" : 2 ,
2
+ "manifest_version" : 3 ,
3
3
"name" : " __MSG_extensionName__" ,
4
4
"description" : " __MSG_extensionDescription__" ,
5
5
"version" : " 0.1.0" ,
18
18
" activeTab" ,
19
19
" notifications" ,
20
20
" webRequest" ,
21
- " webRequestBlocking " ,
22
- " <all_urls> "
21
+ " declarativeNetRequest " ,
22
+ " scripting "
23
23
],
24
24
25
- "content_security_policy" : " default-src 'self'; style-src 'self' 'unsafe-inline'; img-src * data:; connect-src *; object-src 'none'; media-src 'none'; child-src 'none'; form-action 'none';" ,
25
+ "host_permissions" : [" <all_urls>" ],
26
+
27
+ "content_security_policy" : {
28
+ "extension_pages" : " default-src 'self'; style-src 'self' 'unsafe-inline'; img-src * data:; connect-src *; object-src 'none'; media-src 'none'; child-src 'none'; form-action 'none';"
29
+ },
26
30
27
31
"icons" : {
28
32
"16" : " src/assets/icons/app/icon-16.png" ,
36
40
"128" : " src/assets/icons/app/icon-128.png"
37
41
},
38
42
39
- "browser_action " : {
43
+ "action " : {
40
44
"default_icon" : {
41
45
"16" : " src/assets/icons/app/icon-16.png" ,
42
46
"19" : " src/assets/icons/app/icon-19.png" ,
52
56
53
57
"options_ui" : {
54
58
"page" : " src/options/index.html" ,
55
- "chrome_style" : false ,
56
59
"open_in_tab" : true
57
60
},
58
61
59
62
"background" : {
60
- "page " : " src/background/index.html "
63
+ "service_worker " : " src/background/script.js "
61
64
},
62
65
63
66
"content_scripts" : [
Original file line number Diff line number Diff line change 1
1
{
2
- "manifest_version" : 2 ,
2
+ "manifest_version" : 3 ,
3
3
"name" : " __MSG_extensionName__" ,
4
4
"description" : " __MSG_extensionDescription__" ,
5
5
"version" : " 0.1.0" ,
18
18
" activeTab" ,
19
19
" notifications" ,
20
20
" webRequest" ,
21
- " webRequestBlocking " ,
22
- " <all_urls> "
21
+ " declarativeNetRequest " ,
22
+ " scripting "
23
23
],
24
24
25
- "content_security_policy" : " default-src 'self'; style-src 'self' 'unsafe-inline'; img-src * data:; connect-src *; object-src 'none'; media-src 'none'; child-src 'none'; form-action 'none';" ,
25
+ "host_permissions" : [" <all_urls>" ],
26
+
27
+ "content_security_policy" : {
28
+ "extension_pages" : " default-src 'self'; style-src 'self' 'unsafe-inline'; img-src * data:; connect-src *; object-src 'none'; media-src 'none'; child-src 'none'; form-action 'none';"
29
+ },
26
30
27
31
"icons" : {
28
32
"16" : " src/assets/icons/app/icon-16.png" ,
36
40
"128" : " src/assets/icons/app/icon-128.png"
37
41
},
38
42
39
- "browser_action " : {
43
+ "action " : {
40
44
"default_icon" : {
41
45
"16" : " src/assets/icons/app/icon-16.png" ,
42
46
"19" : " src/assets/icons/app/icon-19.png" ,
52
56
53
57
"options_ui" : {
54
58
"page" : " src/options/index.html" ,
55
- "chrome_style" : false ,
56
59
"open_in_tab" : true
57
60
},
58
61
59
62
"background" : {
60
- "page " : " src/background/index.html "
63
+ "service_worker " : " src/background/script.js "
61
64
},
62
65
63
66
"content_scripts" : [
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const isProduction = process.env.NODE_ENV === 'production';
14
14
const enableContributions =
15
15
( process . env . ENABLE_CONTRIBUTIONS || 'true' ) === 'true' ;
16
16
17
- const mv3 = [ 'chrome' ] . includes ( targetEnv ) ;
17
+ const mv3 = [ 'chrome' , 'edge' , 'opera' ] . includes ( targetEnv ) ;
18
18
19
19
const provideExtApi = ! [ 'firefox' , 'safari' ] . includes ( targetEnv ) ;
20
20
You can’t perform that action at this time.
0 commit comments