Skip to content
This repository was archived by the owner on Jun 21, 2024. It is now read-only.

Commit 71ab75b

Browse files
committed
Fix toggle styles
1 parent 2565569 commit 71ab75b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/userscript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ let userscriptPromise;
112112
container.appendChild(svg);
113113

114114
function setSvgDisabled() {
115-
svg.innerHTML = `<div class="container__871ba default-colors" style="opacity: 1; background-color: rgb(114, 118, 125);"><svg class="slider__41d94" viewBox="0 0 28 20" preserveAspectRatio="xMinYMid meet" aria-hidden="true" style="left: -3px;"><rect fill="white" x="4" y="0" height="20" width="20" rx="10"></rect><svg viewBox="0 0 20 20" fill="none"><path fill="rgba(114, 118, 125, 1)" d="M5.13231 6.72963L6.7233 5.13864L14.855 13.2704L13.264 14.8614L5.13231 6.72963Z"></path><path fill="rgba(114, 118, 125, 1)" d="M13.2704 5.13864L14.8614 6.72963L6.72963 14.8614L5.13864 13.2704L13.2704 5.13864Z"></path></svg></svg><input id="uid_84" type="checkbox" class="input-125oad" tabindex="0"></div>`;
115+
svg.innerHTML = `<div class="container__871ba default-colors" style="opacity: 1; background-color: rgb(114, 118, 125);"><svg class="slider__41d94" viewBox="0 0 28 20" preserveAspectRatio="xMinYMid meet" aria-hidden="true" style="left: -3px;"><rect fill="white" x="4" y="0" height="20" width="20" rx="10"></rect><svg viewBox="0 0 20 20" fill="none"><path fill="rgba(114, 118, 125, 1)" d="M5.13231 6.72963L6.7233 5.13864L14.855 13.2704L13.264 14.8614L5.13231 6.72963Z"></path><path fill="rgba(114, 118, 125, 1)" d="M13.2704 5.13864L14.8614 6.72963L6.72963 14.8614L5.13864 13.2704L13.2704 5.13864Z"></path></svg></svg><input type="checkbox" class="input_be50d1" tabindex="0"></div>`;
116116
}
117117

118118
function setSvgEnabled() {
119-
svg.innerHTML = `<div class="container__871ba default-colors checked__6bdb0" style="opacity: 1; background-color: rgb(59, 165, 92);"><svg class="slider__41d94" viewBox="0 0 28 20" preserveAspectRatio="xMinYMid meet" aria-hidden="true" style="left: 12px;"><rect fill="white" x="4" y="0" height="20" width="20" rx="10"></rect><svg viewBox="0 0 20 20" fill="none"><path fill="rgba(59, 165, 92, 1)" d="M7.89561 14.8538L6.30462 13.2629L14.3099 5.25755L15.9009 6.84854L7.89561 14.8538Z"></path><path fill="rgba(59, 165, 92, 1)" d="M4.08643 11.0903L5.67742 9.49929L9.4485 13.2704L7.85751 14.8614L4.08643 11.0903Z"></path></svg></svg><input id="uid_74" type="checkbox" class="input-125oad" tabindex="0" checked=""></div>`;
119+
svg.innerHTML = `<div class="container__871ba default-colors checked__6bdb0" style="opacity: 1; background-color: rgb(59, 165, 92);"><svg class="slider__41d94" viewBox="0 0 28 20" preserveAspectRatio="xMinYMid meet" aria-hidden="true" style="left: 12px;"><rect fill="white" x="4" y="0" height="20" width="20" rx="10"></rect><svg viewBox="0 0 20 20" fill="none"><path fill="rgba(59, 165, 92, 1)" d="M7.89561 14.8538L6.30462 13.2629L14.3099 5.25755L15.9009 6.84854L7.89561 14.8538Z"></path><path fill="rgba(59, 165, 92, 1)" d="M4.08643 11.0903L5.67742 9.49929L9.4485 13.2704L7.85751 14.8614L4.08643 11.0903Z"></path></svg></svg><input type="checkbox" class="input_be50d1" tabindex="0" checked=""></div>`;
120120
}
121121

122122
function updateSvg() {

0 commit comments

Comments
 (0)