mirror of
https://github.com/anatolykopyl/vk-mute.git
synced 2026-03-26 12:55:13 +00:00
Перешел на css ВК
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
/node_modules
|
/node_modules
|
||||||
/.cache
|
/.cache
|
||||||
/.idea
|
/.idea
|
||||||
|
/assets
|
||||||
.zip
|
.zip
|
||||||
13
extension/dist/dom.js
vendored
13
extension/dist/dom.js
vendored
File diff suppressed because one or more lines are too long
4
extension/dist/donate.html
vendored
4
extension/dist/donate.html
vendored
@@ -25,7 +25,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
background-color: hsl(207, 90%, 90%);
|
background-color: hsl(207, 90%, 95%);
|
||||||
max-width: 700px;
|
max-width: 700px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
@@ -50,4 +50,4 @@
|
|||||||
<span class="wallet"><strong>BTC:</strong> bc1qf4wtp636m6pqcfz0c42t4fdutqrs4unkdpt5r8</span>
|
<span class="wallet"><strong>BTC:</strong> bc1qf4wtp636m6pqcfz0c42t4fdutqrs4unkdpt5r8</span>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
4
extension/dist/popup.js
vendored
4
extension/dist/popup.js
vendored
File diff suppressed because one or more lines are too long
3
src/dom/controls.js
vendored
3
src/dom/controls.js
vendored
@@ -9,8 +9,9 @@ function muteBtnHTML(id) {
|
|||||||
const element = document.createElement('span');
|
const element = document.createElement('span');
|
||||||
element.setAttribute('class', 'mute_message');
|
element.setAttribute('class', 'mute_message');
|
||||||
element.setAttribute('id', `mute${id}`);
|
element.setAttribute('id', `mute${id}`);
|
||||||
|
element.setAttribute('label', 'Заглушить');
|
||||||
element.style.background = `url(${chrome.runtime.getURL("assets/mute.png")}) center no-repeat`;
|
element.style.background = `url(${chrome.runtime.getURL("assets/mute.png")}) center no-repeat`;
|
||||||
element.innerHTML ='<span class="mutetooltip">Заглушить</span>';
|
element.innerHTML = '<div class="mute_tooltip tt_w tt_black tt_down"><div class="tt_text">Заглушить</div></div>';
|
||||||
return element;
|
return element;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,50 +1,28 @@
|
|||||||
.mute_message .mutetooltip {
|
.mute_tooltip {
|
||||||
visibility: hidden;
|
|
||||||
width: 120px;
|
|
||||||
background-color: #555;
|
|
||||||
color: #fff;
|
|
||||||
text-align: center;
|
|
||||||
padding: 5px 0;
|
|
||||||
border-radius: 6px;
|
|
||||||
|
|
||||||
/* Position the tooltip text */
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 1;
|
left: -50px;
|
||||||
bottom: 110%;
|
top: -33px;
|
||||||
margin-left: -53px;
|
display: none;
|
||||||
|
|
||||||
/* Fade in tooltip */
|
|
||||||
opacity: 0;
|
|
||||||
transition: opacity 0.3s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tooltip arrow */
|
.mute_tooltip::after {
|
||||||
.mute_message .mutetooltip::after {
|
left: 61px !important;
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
top: 100%;
|
|
||||||
left: 50%;
|
|
||||||
margin-left: -5px;
|
|
||||||
border-width: 5px;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: #555 transparent transparent transparent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Show the tooltip text when you mouse over the tooltip container */
|
/* Show the tooltip text when you mouse over the tooltip container */
|
||||||
.mute_message:hover .mutetooltip {
|
.mute_message:hover .mute_tooltip {
|
||||||
visibility: visible;
|
display: block !important;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mute_message {
|
.mute_message {
|
||||||
margin-top: .46rem;
|
position: relative;
|
||||||
margin-left: 4px;
|
|
||||||
margin-right: 3px;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
width: 12px;
|
padding-top: 2px;
|
||||||
height: 12px;
|
width: 24px;
|
||||||
background-size: contain !important;
|
height: 24px;
|
||||||
|
background-size: 11px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.im-mess--actions {
|
.im-mess--actions {
|
||||||
|
|||||||
@@ -10,7 +10,11 @@ function init() {
|
|||||||
createTryToInitInterval();
|
createTryToInitInterval();
|
||||||
addNewMessageEventListener();
|
addNewMessageEventListener();
|
||||||
returnMessagesEventListener();
|
returnMessagesEventListener();
|
||||||
hideExistingMessages();
|
chrome.storage.sync.get('isExtensionOn', function(data) {
|
||||||
|
if (data.isExtensionOn) {
|
||||||
|
hideExistingMessages();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
background-color: hsl(207, 90%, 90%);
|
background-color: hsl(207, 90%, 95%);
|
||||||
max-width: 700px;
|
max-width: 700px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
@@ -50,4 +50,4 @@
|
|||||||
<span class="wallet"><strong>BTC:</strong> bc1qf4wtp636m6pqcfz0c42t4fdutqrs4unkdpt5r8</span>
|
<span class="wallet"><strong>BTC:</strong> bc1qf4wtp636m6pqcfz0c42t4fdutqrs4unkdpt5r8</span>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ h3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.idToHide:hover {
|
.idToHide:hover {
|
||||||
background-color: #dcdfde;
|
background-color: #f1f1f1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#id_list {
|
#id_list {
|
||||||
@@ -109,6 +109,11 @@ h3 {
|
|||||||
|
|
||||||
.del_item {
|
.del_item {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.del_item:hover {
|
||||||
|
transform: scale(1.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.donation_btn {
|
.donation_btn {
|
||||||
|
|||||||
Reference in New Issue
Block a user