Merge pull request #615 from SheepStar02/main

Small change
This commit is contained in:
Dmitrii Selivanov authored and GitHub committed 2022-07-20 00:09:40 +02:00
commit 332ae78095
3 files changed
+3 -4

No files matched your search

@@ -561,7 +561,7 @@ function getColorFromTheme(voteIsLike) {
function setEventListeners(evt) { function setEventListeners(evt) {
let jsInitChecktimer; let jsInitChecktimer;
function checkForJS_Finish(check) { function checkForJS_Finish() {
console.log(); console.log();
if (isShorts() || (getButtons()?.offsetParent && isVideoLoaded())) { if (isShorts() || (getButtons()?.offsetParent && isVideoLoaded())) {
const buttons = getButtons(); const buttons = getButtons();
+1 -1
View File
@@ -94,7 +94,7 @@
__MSG_legendSettings__ __MSG_legendSettings__
</legend> </legend>
<label class="switch" data-hover="__MSG_textSettingsHover__"> <label class="switch" data-hover="Stop counting your likes and dislikes">
<input type="checkbox" id="disable_vote_submission"/> <input type="checkbox" id="disable_vote_submission"/>
<span class="slider"/> <span class="slider"/>
<span class="switchLabel" title="__MSG_textSettings__" <span class="switchLabel" title="__MSG_textSettings__"
+1 -2
View File
@@ -111,14 +111,13 @@ advancedToggle.addEventListener("click", () => {
adv.style.pointerEvents = "none"; adv.style.pointerEvents = "none";
adv.style.opacity = "0"; adv.style.opacity = "0";
advancedToggle.innerHTML = config.showAdvancedMessage; advancedToggle.innerHTML = config.showAdvancedMessage;
config.advanced = false;
} else { } else {
adv.style.transform = "scale(1)"; adv.style.transform = "scale(1)";
adv.style.pointerEvents = "auto"; adv.style.pointerEvents = "auto";
adv.style.opacity = "1"; adv.style.opacity = "1";
advancedToggle.innerHTML = config.hideAdvancedMessage; advancedToggle.innerHTML = config.hideAdvancedMessage;
config.advanced = true;
} }
config.advanced = !config.advanced;
}); });
initConfig(); initConfig();