Refactoring and add build-tools

This commit is contained in:
Matvey Tarasov
2020-04-18 17:27:15 +03:00
parent 708cb72028
commit b0b79e46a6
26 changed files with 7896 additions and 172 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
extension/assets/mute.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

117
extension/dist/background.js vendored Normal file

File diff suppressed because one or more lines are too long

887
extension/dist/dom.js vendored Normal file

File diff suppressed because one or more lines are too long

21
extension/dist/popup.html vendored Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="header">
<h3 align="center" id="status"></h3>
</div>
<!--<button id="disableButton">Toggle</button>-->
<div style="text-align: center;">
<label class="switch">
<input type="checkbox" id="disableCheckbox">
<span class="slider round"></span>
</label>
</div>
<div class="id_list">
<div id="idToHide"></div>
</div>
<script src="popup.js"></script></body>
</html>

584
extension/dist/popup.js vendored Normal file

File diff suppressed because one or more lines are too long

29
extension/manifest.json Normal file
View File

@@ -0,0 +1,29 @@
{
"name": "VK Mute",
"icons": {
"140": "assets/icons/icon140.png",
"128": "assets/icons/icon128.png",
"48": "assets/icons/icon48.png"
},
"version": "1.0",
"description": "Позволяет заглушить нежелаемых собеседников",
"permissions": [
"activeTab",
"declarativeContent",
"storage"
],
"background": {
"scripts": ["dist/background.js"],
"persistent": false
},
"page_action": {
"default_popup": "dist/popup.html"
},
"manifest_version": 2,
"content_scripts": [
{
"matches": ["https://*.vk.com/*"],
"js": ["./dist/dom.js"]
}
]
}