mirror of
https://github.com/anatolykopyl/vk-mute.git
synced 2026-03-26 12:55:13 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 37aa1bd689 | |||
|
|
5f5e5d1461 | ||
| 42d352c0f6 | |||
|
|
2ee163cba7 |
19
README.md
19
README.md
@@ -6,11 +6,15 @@
|
|||||||
Если нажать на кнопку 🔇 напротив сообщения в беседе, то все сообщения во всех беседах от этого отправителя будут скрыты.
|
Если нажать на кнопку 🔇 напротив сообщения в беседе, то все сообщения во всех беседах от этого отправителя будут скрыты.
|
||||||
|
|
||||||
## Установка:
|
## Установка:
|
||||||
1. Скачать ZIP
|
### Вариант 1
|
||||||
|
Скачать из интернет-магазина Chrome ([ссылка](https://chrome.google.com/webstore/detail/vk-mute/mcnkfnjggkbenehgfelnnkklpkpjeibl)).
|
||||||
|
|
||||||
|
### Вариант 2
|
||||||
|
1. [Скачать ZIP](https://github.com/anatolykopyl/vk-mute/releases)
|
||||||
2. Разархивировать в удобное место
|
2. Разархивировать в удобное место
|
||||||
3. Хром > Настройки > Расширения
|
3. Хром > Настройки > Расширения
|
||||||
1. Включить режим разработчика
|
1. Включить режим разработчика
|
||||||
2. Загрузить распакованное, выбрать каталог с расширением (vk-mute-master/extension)
|
2. Загрузить распакованное, выбрать каталог с расширением
|
||||||
|
|
||||||
Расширение должно работать во всех браузерах на движке Chromium.
|
Расширение должно работать во всех браузерах на движке Chromium.
|
||||||
|
|
||||||
@@ -18,3 +22,14 @@
|
|||||||
- Google Chrome
|
- Google Chrome
|
||||||
- Opera
|
- Opera
|
||||||
- Brave
|
- Brave
|
||||||
|
|
||||||
|
## Разработка:
|
||||||
|
Для живого обновления содержимого каталога `extension` во время работы запускаем:
|
||||||
|
```
|
||||||
|
$ npm run watch
|
||||||
|
```
|
||||||
|
|
||||||
|
Для билда расширения:
|
||||||
|
```
|
||||||
|
$ npm run build
|
||||||
|
```
|
||||||
|
|||||||
4
extension/dist/popup.js
vendored
4
extension/dist/popup.js
vendored
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@
|
|||||||
"128": "assets/icons/icon128.png",
|
"128": "assets/icons/icon128.png",
|
||||||
"48": "assets/icons/icon48.png"
|
"48": "assets/icons/icon48.png"
|
||||||
},
|
},
|
||||||
"version": "1.2",
|
"version": "1.4",
|
||||||
"description": "Позволяет заглушить нежелаемых собеседников",
|
"description": "Позволяет заглушить нежелаемых собеседников",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"declarativeContent",
|
"declarativeContent",
|
||||||
@@ -19,6 +19,11 @@
|
|||||||
"page_action": {
|
"page_action": {
|
||||||
"default_popup": "dist/popup.html"
|
"default_popup": "dist/popup.html"
|
||||||
},
|
},
|
||||||
|
"browser_action": {
|
||||||
|
"default_icon": "assets/icons/icon128.png",
|
||||||
|
"default_title": "VK Mute",
|
||||||
|
"default_popup": "dist/popup.html"
|
||||||
|
},
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
@@ -28,5 +33,11 @@
|
|||||||
],
|
],
|
||||||
"web_accessible_resources": [
|
"web_accessible_resources": [
|
||||||
"assets/mute.png"
|
"assets/mute.png"
|
||||||
]
|
],
|
||||||
|
"browser_specific_settings": {
|
||||||
|
"gecko": {
|
||||||
|
"id": "{121ce430-bad8-4f6b-85ba-55635e87e57d}",
|
||||||
|
"strict_min_version": "48.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
min-width: 160px;
|
min-width: 160px;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
/* The switch - the box around the slider */
|
/* The switch - the box around the slider */
|
||||||
.switch {
|
.switch {
|
||||||
@@ -71,19 +72,17 @@ input:checked + .slider:before {
|
|||||||
.header {
|
.header {
|
||||||
background-color: #2196F3;
|
background-color: #2196F3;
|
||||||
color: white;
|
color: white;
|
||||||
width: 100vw;
|
width: 100%;
|
||||||
|
height: 3rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-left: -50vw;
|
display: flex;
|
||||||
left: 50%;
|
align-items: center;
|
||||||
margin-top: -20vw;
|
justify-content: center;
|
||||||
margin-bottom: 10vw;
|
margin-bottom: 1rem;
|
||||||
padding-top: 5px;
|
|
||||||
padding-bottom: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
margin-bottom: 0;
|
margin: 0;
|
||||||
padding: 1rem 0 .5rem 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.idToHide {
|
.idToHide {
|
||||||
@@ -92,7 +91,6 @@ h3 {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
width: 100vw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.idToHide:hover {
|
.idToHide:hover {
|
||||||
@@ -102,9 +100,8 @@ h3 {
|
|||||||
#id_list {
|
#id_list {
|
||||||
color: black;
|
color: black;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-left: -50vw;
|
width: 100%;
|
||||||
left: 50%;
|
margin-top: 1rem;
|
||||||
margin-top: 10vw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.del_item {
|
.del_item {
|
||||||
@@ -119,6 +116,7 @@ h3 {
|
|||||||
.donation_btn {
|
.donation_btn {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin-top: .5rem;
|
margin-top: .5rem;
|
||||||
|
padding: 0 10px 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|||||||
Reference in New Issue
Block a user