mirror of
https://github.com/goodtube4u/goodtube.git
synced 2025-11-22 10:16:11 +00:00
Minor fix
This commit is contained in:
@@ -228,10 +228,15 @@
|
||||
|
||||
// Remove that annoying "Are you still watching" prompt
|
||||
function goodTube_youtube_areYouStillWatching() {
|
||||
let confirButtons = document.querySelectorAll('tp-yt-paper-dialog #confirm-button:not(.goodTube_clicked)');
|
||||
confirButtons.forEach((element) => {
|
||||
element.classList.add('goodTube_clicked');
|
||||
element.click();
|
||||
let confirmButtons = document.querySelectorAll('tp-yt-paper-dialog #confirm-button:not(.goodTube_clicked)');
|
||||
confirmButtons.forEach((confirmButton) => {
|
||||
confirmButton.classList.add('goodTube_clicked');
|
||||
confirmButton.click();
|
||||
|
||||
// Allow it to be clicked multiple times
|
||||
setTimeout(function() {
|
||||
confirmButton.classList.remove('goodTube_clicked');
|
||||
}, 1000);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user