Closed lawrencehook closed 2 years ago
Thanks for investigating! Feel free to give it a shot if you'd like. Head's up I agree that it might be a bit tricky because this option will be different from the existing ones because of the JavaScript involved.
Possible approach: add a mutation observer and click on the result of document.querySelectorAll(".ytp-autonav-toggle-button[aria-checked='true']")
if it exists.
Array.from(document.querySelectorAll(".ytp-autonav-toggle-button[aria-checked='true']")).forEach(e => e.click())
done as of 402d6cab25ca3c76dcafbcbd074cfda4d1c050ed
I'm still inexperienced with CSS selector nor JS, but I think this can be achieved by :
button[class=ytp-button]
div.ytp-autonav-toggle-button
'saria-checked
value to false. not pretty sure but I think this needs a conditional in the code because of the attribute value changeWhat do you think? I can try creating a pull request if this is an okay idea.