Last active
November 18, 2021 23:59
-
-
Save Vopaaz/4ab1982769959bc7d5127cc302d13338 to your computer and use it in GitHub Desktop.
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
fn = () => { | |
l = "0123456789qwertyuiopasdfghjklzxcvbnm" | |
candidates = [] | |
for (const c1 of l) { | |
for(const c2 of l){ | |
candidates.push(c1 + c2) | |
} | |
} | |
for (const suffix of candidates){ | |
btn = document.querySelector( | |
`#invideo-overlay\\:${suffix} > div > div.ytp-ad-image-overlay > div.ytp-ad-overlay-image` | |
) | |
if (btn){ | |
btn.click() | |
break | |
} | |
} | |
} | |
setInterval(fn, 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment