mirror of
https://github.com/lawrencehook/remove-youtube-suggestions.git
synced 2026-07-25 06:54:31 +00:00
Click on the dismiss button, if present
This commit is contained in:
@@ -102,6 +102,12 @@ function runDynamicSettings() {
|
||||
})
|
||||
}
|
||||
|
||||
// Click on the "dismiss" button
|
||||
const dismissButton = document.getElementById('dismiss-button');
|
||||
if (dismissButton && dismissButton.offsetParent) {
|
||||
dismissButton.click();
|
||||
}
|
||||
|
||||
// Disable autoplay
|
||||
if (cache['disable_autoplay'] === true) {
|
||||
const autoplayButton = document.querySelectorAll('.ytp-autonav-toggle-button[aria-checked=true]');
|
||||
|
||||
Reference in New Issue
Block a user