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
5.91k stars 319 forks source link

Fix video ID extraction to support multiple URL formats #556

Closed eefh closed 3 weeks ago

eefh commented 3 weeks ago

This PR fixes the video ID extraction logic to support various YouTube URL formats, including both standard video URLs (watch?v=), and other urls such as live stream URLs (live/). Previously it only handled URLs with the v parameter, causing it to break with live stream URLs or urls like https://www.youtube.com/watch?app=desktop&v=_x9bXso3wo4