@@ -6,12 +6,39 @@ export default defineManifest({
66 manifest_version : 3 ,
77 name : pkg . title ,
88 version : pkg . version ,
9- icons : {
10- 128 : 'icon-128.png' ,
9+ description : pkg . description ,
10+ host_permissions : [ '<all_urls>' ] ,
11+ declarative_net_request : {
12+ rule_resources : [
13+ {
14+ id : 'lyticsBlockRule' ,
15+ enabled : true ,
16+ path : 'rules.json' ,
17+ } ,
18+ ] ,
19+ } ,
20+ side_panel : {
21+ default_path : 'src/pages/sidepanel/index.html' ,
22+ } ,
23+ background : {
24+ type : 'module' ,
25+ service_worker : 'src/pages/background/index.ts' ,
1126 } ,
27+ options_page : 'src/pages/options/index.html' ,
1228 action : {
1329 default_title : 'Click to open panel' ,
30+ default_panel : 'src/pages/sidepanel/index.html' ,
31+ default_icon : 'icon-34.png' ,
32+ } as any ,
33+ icons : {
34+ 128 : 'icon-128.png' ,
1435 } ,
36+ content_scripts : [
37+ {
38+ matches : [ 'http://*/*' , 'https://*/*' , '<all_urls>' ] ,
39+ js : [ 'src/pages/content/index.ts' ] ,
40+ } ,
41+ ] ,
1542 permissions : [
1643 'storage' ,
1744 'activeTab' ,
@@ -24,18 +51,16 @@ export default defineManifest({
2451 'contextMenus' ,
2552 'management' ,
2653 ] ,
27- content_scripts : [
28- {
29- matches : [ 'http://*/*' , 'https://*/*' , '<all_urls>' ] ,
30- js : [ 'src/pages/content/index.js' ] ,
31- } ,
32- ] ,
33- side_panel : {
34- default_path : 'src/pages/sidepanel/index.html' ,
35- } ,
3654 web_accessible_resources : [
3755 {
38- resources : [ 'tagLink.js' ] ,
56+ resources : [
57+ 'assets/img/*.png' ,
58+ 'assets/js/*.js' ,
59+ 'assets/css/*.css' ,
60+ 'icon-128.png' ,
61+ 'icon-34.png' ,
62+ 'tagLink.js' ,
63+ ] ,
3964 matches : [ '<all_urls>' ] ,
4065 } ,
4166 ] ,
0 commit comments