added support for youtube music links

Seaswimmer 2024-03-12 01:59:52 +00:00
parent 4b9c40177a
commit 6f228edb06
Signed by untrusted user who does not match committer: CoastalCommits
GPG key ID: 7E73189F651A553F

@ -30,7 +30,7 @@ Only if includes: mod
### Replace YouTube links and YouTube Shorts links with `youtu.be` links
*This also allows YouTube Shorts to be embedded and played as normal videos.*
```regex
Find: https?:\/\/(?:www\.)?youtube\.com\/(?:watch\?v=|embed\/|shorts\/)([\w\-]+)
Find: https?:\/\/(?:www|music)?(?:\.)?youtube\.com\/(?:watch\?v=|embed\/|shorts\/)([\w\-]+)
Replace: https://youtu.be/$1
```
### Replace `media.discordapp.com` links with `cdn.discordapp.com`