fix menu bug

This commit is contained in:
Lawrence Hook
2023-03-13 09:14:29 -04:00
parent 390e72e40d
commit 050c6c76be
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -244,14 +244,14 @@ function runDynamicSettings() {
// Disable ambient mode // Disable ambient mode
if (cache['disable_ambient_mode'] === true) { if (cache['disable_ambient_mode'] === true) {
if (ambientToggle?.getAttribute('aria-checked') === 'true') { if (ambientToggle?.getAttribute('aria-checked') === 'true') {
ambientToggle.click(); qs('.ytp-menuitem-toggle-checkbox', ambientToggle)?.click();
} }
} }
// Disable annotations // Disable annotations
if (cache['disable_annotations'] === true) { if (cache['disable_annotations'] === true) {
if (annotationsToggle?.getAttribute('aria-checked') === 'true') { if (annotationsToggle?.getAttribute('aria-checked') === 'true') {
annotationsToggle.click(); qs('.ytp-menuitem-toggle-checkbox', annotationsToggle)?.click();
} }
} }
} }
+1 -1
View File
@@ -186,7 +186,7 @@ const SECTIONS = [
{ {
name: "Disable autoplay", name: "Disable autoplay",
id: "disable_autoplay", id: "disable_autoplay",
defaultValue: true defaultValue: false
}, },
{ {
name: "Disable ambient mode", name: "Disable ambient mode",