Install tampermonkey
Add this script
// ==UserScript==
// @name Auto click continue watch on youtube
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @grant none
// @include https://www.youtube.com/*
// ==/UserScript==
(function () {
'use strict';
(function close() {
try {
document.getElementById("confirm-button").children[0].children[0].children[0].click();
document.getElementsByClassName("style-scope ytd-popup-container")[0].removeChild(document.getElementById("toast"))
} catch (e) {}
setTimeout(close, 1000);
})();
})();
Enjoy