doma-itachi / Youtube-shorts-block

Play the Youtube shorts video as if it were a normal video
https://chrome.google.com/webstore/detail/youtube-shorts-block/jiaopdjbehhjgokpphdfgmapkobbnmjp
MIT License
233 stars 19 forks source link

Plugin falsely tries to match a video-id if a channel-id ends in "shorts" #52

Closed Thorben-D closed 1 month ago

Thorben-D commented 1 month ago

Hello,

I noticed an issue with the plugin, where, if a channel-id ends with "shorts", the plugin tries to match a video-id and redirects you to: https://www.youtube.com/watch?v=shorts.

As per the regex, this only happens if the channel-id ends with a lower-case "shorts".

Here are two examples I quickly found: