mirror of
https://github.com/lawrencehook/remove-youtube-suggestions.git
synced 2026-07-25 06:54:31 +00:00
fix menu bug
This commit is contained in:
@@ -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
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user