TheRealJoelmatic / RemoveAdblockThing

The intrusive "Ad blocker are not allowed on YouTube" message is annoying. This open-source project aims to address this issue by providing a solution to bypass YouTube's ad blocker detection
http://joelmatic.com/
MIT License
6.06k stars 330 forks source link

Detect navigation instead of infinite setInterval() loop #551

Open CatPieLeaf opened 3 months ago

CatPieLeaf commented 3 months ago

This PR replaces setInterval() with three event listeners for attempting to swap players only once the user navigates through the page, instead of throwing multiple attempts every second and causing performance issues.

eutudb23 commented 6 days ago

Thanks, this solved other issues as well. Most of embedded videos didn't play with latest 5.6 version and this solution also fixes that issue.