Saturday, February 4, 2023

Youtube block script works for individial ads, but doesn't block back-to-back ads. How can I find the right tag?

setInterval(() => { const btn = document.querySelector('.videoAdUiSkipButton,.ytp-ad-skip-button') if (btn) { btn.click() } const ad = [...document.querySelectorAll('.ad-showing')][0]; if (ad) { document.querySelector('video').playbackRate = 1000000; document.querySelector('video').volume = 0; } }, 50) 

A different tag from 'ad-showing' must be being used when showing back to back ads, but I'm not to sure how I can figure out what that might be. Any suggestions?

submitted by /u/Riverside-96
[link] [comments]

No comments:

Post a Comment