Created
May 22, 2019 10:33
-
-
Save fredsiika/0a667d1ecaa9ee77c86dc8d8e48adaa5 to your computer and use it in GitHub Desktop.
Paste into your console while watching YouTube video to automatically press "skip" button when ad appears.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// check for ad every second | |
setInterval(() => { | |
// cache skip button | |
const skipBtn = document.querySelector('.videoAdUiSkipButton'); | |
// click skip button if it exists | |
if (skipBtn) skipBtn.click(); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment