lawrencehook / remove-youtube-suggestions

A browser extension that removes YouTube suggestions, comments, shorts, and more
https://lawrencehook.com/rys/
Mozilla Public License 2.0
379 stars 33 forks source link

Update content-script.js #74

Closed robertjcolley closed 1 year ago

robertjcolley commented 1 year ago

I tend to navigate directly to https://www.youtube.com (without the backslash) which doesn't match this regex. I've updated it to match an optional backslash. PoC here: https://www.regextester.com/?fam=126957

lawrencehook commented 1 year ago

@robertjcolley Oh nice, thanks!

During my testing, the string in location.href always has a trailing backslash, but your change can't hurt to add.