Migrate to manifest v3

This commit is contained in:
2023-12-10 11:15:53 +03:00
parent 4089f640ea
commit 91f1833534
18 changed files with 1141 additions and 1138 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

File diff suppressed because one or more lines are too long

1224
extension/dist/dom.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -2,12 +2,11 @@
<html>
<head>
<meta charset="UTF-8">
</head>
<script defer src="popup.js"></script></head>
<body>
<div class="header">
<h3 align="center">VK Mute</h3>
</div>
<!--<button id="disableButton">Toggle</button>-->
<div style="text-align: center;">
<label class="switch">
<input type="checkbox" id="disableCheckbox">
@@ -19,5 +18,5 @@
<div class="donation_btn">
<a href="./donate.html" title="Пожертвовать" target="_blank">💸</a>
</div>
<script src="popup.js"></script></body>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@@ -6,20 +6,21 @@
"128": "assets/icons/icon128.png",
"48": "assets/icons/icon48.png"
},
"version": "1.4",
"version": "1.5.0",
"description": "Позволяет заглушить нежелаемых собеседников",
"permissions": [
"declarativeContent",
"storage"
],
"background": {
"scripts": ["dist/background.js"],
"persistent": false
},
"page_action": {
"action": {
"default_icon": {
"140": "assets/icons/icon140.png",
"128": "assets/icons/icon128.png",
"48": "assets/icons/icon48.png"
},
"default_title": "VK Mute",
"default_popup": "dist/popup.html"
},
"manifest_version": 2,
"manifest_version": 3,
"content_scripts": [
{
"matches": ["https://*.vk.com/*"],
@@ -27,6 +28,9 @@
}
],
"web_accessible_resources": [
"assets/mute.png"
{
"resources": ["assets/mute.png"],
"matches": ["https://*.vk.com/*"]
}
]
}