NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @namespace https://openuserjs.org/users/Brisingeros // @name Better Youtube Skip // @author Brisingeros // @description Skip youtube adVideo and close bottom ads // @copyright 2020, Brisingeros (https://openuserjs.org/users/Brisingeros) // @license MIT // @version 0.1.0 // @match https://www.youtube.com/* // @grant none // ==/UserScript== function callback(records) { var elmButton = document.querySelector('.ytp-ad-overlay-close-button'); if (elmButton) { elmButton.click(); return; } elmButton = document.querySelector('.ytp-ad-skip-button'); if (elmButton) { elmButton.click(); } } var observer = new MutationObserver(callback); var targetNode = document.body; observer.observe(targetNode, { childList: true, subtree: true });