#🗒-textreplace-rules
1 messages · Page 1 of 1 (latest)
No Canary Message Links
Use Regex Replacement
Find: https://(canary|ptb)\.discord\.com/channels
Replace: https://discord.com/channels
ddinstagram
Normal Posts
Use String Replacement
Replace: https://www.ddinstagram.com
Only if includes: /p/```
__Reels__
Use String Replacement
```Find: https://www.instagram.com
Replace: https://www.ddinstagram.com
Only if includes: /reel/```
rxyddit
Use String Replacement
Replace: https://www.rxyddit.com
Only if includes: /comments/```
tiktxk
Use String Replacement
```Find: https://www.tiktok.com
Replace: https://www.tiktxk.com
Only if includes: /video/```
general regex website replacement:
Find: example\.com (no https://, www., etc)
Replace: <the website to redirect to>
Only if includes <custom input>
e.g. F: tiktok\.com R: tiktxk.com O: video
Also credit azure
Find: '
Replace: ’
Find: "([^ ]+)
Replace: “$1
Find: ([^ ]+)"
Replace: $1”
Find: "([^ ]+)"
Replace: “$1”
Find: --
Replace: —
A Microsoft-word style thingy - "Hello, world" becomes “Hello, world”, and -- becomes —
doesn't work well if you write 'Hello, world' - you have been warned!
is there any regex sed that can capitalize the first letter of a message?
i tried \U but it doesnt work
regex
Piped way better than YouTube: (Privacy friendly replacement #1)
Can be replaced with Individuous, just change Replace to an Individuous or Piped instance (I'm using the main Piped instance here)
Find: https://youtube.com
Replace: https://piped.video
regex mode
Find: https:\/\/youtube\.com\/watch\?v=.*
Replace: https://www.youtube.com/watch?v=dQw4w9WgXcQ

Another YouTube to piped replace, this time using regex, only replacing video links but also replacing youtu.be links.
this replaces youtu.be, www.youtube.com/watch?v= and youtube.com/watch?v=
feel free to use your favorite piped instance
Find: /(www\.)?((youtube\.com\/watch\?v=)|(youtu.be\/))/g
Replace: piped.video/watch?v=
Ez Tiktok Embed
(supports all links, + slides)
vm.tiktok.com/
vt.tiktok.com/
m.tiktok.com/
www.tiktok.com/
tiktok.com/<tiktok url>
Find: tiktok\.com
Replace: tiktokez.com```
ddinstagram regex
CurseForge mod/modpack project links -> CurseForge link embedder, because CurseForge won't do their job themselves. (https://github.com/CurseForgeCommunity/CFLookup)
Doesn't work for member profiles, etc, yet.
Find: ((legacy|www)\.)?curseforge\.com
Replace: cflookup.com
Only if includes: mod
Find: legacy.curseforge.com
Replace: cflookup.com
Only if includes: mod
Find: curseforge.com
Replace: cflookup.com
Only if includes: mod
Is there any way to add a line break to replacement text on the TextReplacer Plugin? I want to use keywords to send long messages but I can't seem to make any line breaks. I do not know how to use regex so i can't use that 
SOLVED: dev updated plugin, \n breaks line
CurseForge mod modpack project links
Twitch Clip Replacement
Find: clips.twitch.tv
Replace: clips.txitch.tv
Find: www.twitch.tv
Replace: txitch.tv
Only if includes: /clip/
🗿 (best used with the 🗿sound plugin)
Find: Moyai
Replace: :moyai:
Find: moyai
Replace: :moyai:
FxRoblox
Use String Replacement
Replace: https://www.fxroblox.com```
FxPixiv
Use Regex
Replace: fxpixiv.net
Only if includes: /artworks/```
Bee movie script emoji name trolley
cat
Use String Replacement
Replace: nya
Find: me
Replace: meow
Find: ra
Replace: rawr
Find: hi
Replace: hiss
Find: pu
Replace: purr
Find: love
replace: mrrow~!
Find: nin
Replace: nyan```
Nintendo Switch Friend Code to mobile app link
Find: [A-Za-z0-9]+-([0-9]+(-[0-9]+)+)
Replace: https://lounge.nintendo.com/friendcode/$1/C49BNlzZDf
Only if includes: SW-
You need to change the C49BNlzZDf at the end of the url to whatever is at the end of the url that you copy from the Switch Online mobile app only works for your own friend code others will just say friend not found
Fandom wiki -> Breezewiki
aka neater fandom wiki pages
replace: breezewiki
only if includes: .com/wiki/```
Fandom wiki Breezewiki
Ez Instagram Embed
(supports only videos/reels)
login to view videos don't work
www.instagram.com
Find: instagram\.com
Replace: instagramez.com
Only if includes: /reel
Send YouTube videos using shortened link
USING REGEX
Find: https?:\/\/(?:www\.)?youtube\.com\/(?:watch\?v=|embed\/)([\w\-]+)
Replace: https://youtu.be/$1
Send YouTube videos using shortened invidious link
USING REGEX
Find: https?:\/\/(?:www\.)?youtube\.com\/(?:watch\?v=|embed\/)([\w\-_]+)
Replace: https://yewtu.be/$1
stop being a lobotomite (capitalizes MF DOOM and his capitalized aliases)
Replace: MF DOOM
Find: jj doom
Replace: JJ DOOM
Find: madvillain
Replace: MADVILLAIN
Find: dangerdoom
Replace: DANGERDOOM
Find: ma doom
Replace: MA DOOM
Find: doomstarks
Replace: DOOMStarks
Find: nehruviandoom
Replace: NehruvianDOOM```
Discord Proxy to CDN
Find: https:\/\/media\.discordapp\.net(?=\/)
Replace: https://cdn.discordapp.com
nya up your messages (conditonal, only if you include owo or uwu or >w< or variations of those at the end)
USING REGEX
Find: n([aiou])(?=.*\s+(:3|[oOuU>\^]\/{0, 5}w\/{0, 5}[oOuU>\^]))
Replace: ny$1
Using Regex
Find: tenor.com/[\w-]{5}/view
Replace: tenor.com/view
when copying links from the tenor website, it contains your locale, like en-GB for me https://tenor.com/en-GB/view/some-tags-1133142381415846888 which leads to poor embed on Discord. this rule removes the locale to fix it

Find: $
Replace: \n\nSent from Vencord™️ for Discord™️, the best client mod!
Classic™️
Find $
Replace: \n\nSent from Vencord:tm: for Discord:tm:
This but spoiler™️
Using Regex
Find $
Replace: \n\n||Sent from Vencord:tm: for Discord:tm:||
Find: https://edition.cnn.com/
Replace: https://lite.cnn.com/
Someone else can convert this to fancy regex.
Directs people to the "lite" version of CNN. It's the low-bandwidth version of CNN that just loads text & nothing else, useful for ppl using mobile data or have limited bandwidth for whatever reason, or want a fast read experience.
Replace: https://bsyy.app/
Only if includes: /post/
Embed bluesky posts like fx/vxtwitter in discord
Send YouTube Shorts as normal videos
USING REGEX
Find: https?:\/\/(?:www\.)?youtube\.com\/shorts\/([\w\-]+)
Replace: https://youtu.be/$1
full url version:
Replace: https://www.youtube.com/watch?v=$1
Combines "send YouTube videos using shortened link" with "send YouTube Shorts as normal videos"
USING REGEX
Find: https?:\/\/(?:www\.)?youtube\.com\/(?:watch\?v=|embed\/|shorts\/)([\w\-]+)
Replace: https://youtu.be/$1
Pokémon embed service
uses fuzzy search so any search term will return a result
usage:
pke:searchterm
pke:searchterm?sprite=shiny
pke:searchterm?sprite=back
pke:searchterm?sprite=shiny&back
USING REGEX
Find: pke:([\w-]+)
Replace: https://embed.pkmn.dev/$1
Crazy and nuts copypasta
Replaces every time you say crazy or nuts with 1st capital letter and question mark at the end
Dedicated for those who want their friends to block them 
+ Find: Crazy?
- Replace: Crazy? I was crazy once. They locked me in a room. A rubber room. a rubber room with rats, and rats make me crazy.
+ Find: Nuts?
- Replace: Nuts? I went nuts once, they trapped me inside a tree, a giant tree, a giant tree full of squirrels, and squirrels drive me nuts
Makes writing temperature easier, write *F and it will output °F—pretty simple but convenient, no?
Find: \*(f|F|c|C)
Replace: °$1
Imagine using Celsius tho??
Does this, but Celsius (because its way better) Find: \*(c|C) Replace: ℃
Does this but Celsius because its way
Render GitHub issues and pulls nicely
Find: https:\/\/(to)?github\.com\/(?<repo>[A-Za-z0-9-]+\/[A-Za-z0-9._-]+)\/(issues|pull)\/(?<number>[0-9]+)\/*
Replace: [$<repo>#$<number>]($&)
Sticker links are hidden to send text
Replacing google drive share links with download links.
I mad it so, that you have to type (download) at the beginning, to avoid converting any and all links, but you can substitute that with something else, or remove it completely 😄
Using Regex:
\(download\)+https\://drive\.google\.com/file/d/+(.*)+/view\?usp\=sharing
Replace:
https://drive.google.com/uc?export=download&id=$1```
This one makes a cute ˗ˏˋ Hi ˎˊ˗ effect, when you type 'Hi'
Using Regex:
'+([H|h])+([I|i])+'
Replace:
˗ˏˋ Hi ˎˊ˗```
End all your messages by a "."
Find: ^(.*?)\.?\s*$
Replace: $1.
End all your messages by a
Find: ae
Replace: æ
Find: AE
Replace: Æ
Replaces end of sentence \ incase of typos something i occasionally do
Replace: $1```
this but for X links
Use String Replacement
Find: https://x.com
Replace: https://fixvx.com
Only if includes: /status/
this but for X links
Anti-XD detected
hi effect
beaksikorn's hi effect but for any text
to use type ('your text here')
Using Regex:
^\('(.+)'\)$
Replace:
˗ˏˋ $1 ˎˊ˗```
Use string replacement
Find: gay
Replace: gæ
Replace common words
Find: \b<word or letter>\b
Replace: <the word or letter you want>
For an example:
Find: \bim\b
Replace: I'm
Will trigger if you do something like i but won't for something like item
Fixupx
Use String Replacement
To use a different service than fixupx, just change the replacement to whatever u want
||credit @ashen sage figured warranted new post since twitter rebranded and people might not be able to find the old post||
Find: https://x.com
Replace: https://fixupx.com
Only if includes: /status/
Reddit link finder
Use regex
Detects any substring starting with r/ or u/ and converts it to a stylized Reddit link
Find: (^|\s)(\/?([ru])\/(\w+))
Replace: $1[$2](<https://reddit.com/$3/$4>)
Example:
r/place->[r/place](<https://reddit.com/r/place>)u/DarkblooM_SR->[u/DarkblooM_SR](<https://reddit.com/u/DarkblooM_SR>)
Changelog
10/29/2023
+ fixed conflict with links to Reddit posts
+ you can now include an extra / at the beginning (/r/regex, /u/johndoe)
stop posting tracking parameter rules. https://vencord.dev/plugins/ClearURLs exists.
Fixup X/FxTwitter and translate tweet in the same commands
Use regex
Use Fixup X or Fxtwitter and translate the text to your language
X URL
Find: (https:\/\/)x\.com(\/[^/]+\/[^/]+)(\$?.*)?$
Replace: $1fixupx.com$2$3/pt
Replace PT in "replace" to change to translate to your language
Twitter URL
Find: (https:\/\/)twitter\.com(\/[^/]+\/[^/]+)(\$?.*)?$
Replace: $1fxtwitter.com$2$3/pt
Replace PT in "replace" to change to translate to your language
Find: (https?:\/\/[\w.]+discordapp.(?:com|net)\/[\w]+\/[\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])
Replace: [⠀]($1)
Hide discordapp links. It could be an emoji/attachment/stickers, etc.
fix instagram post embeds
Find: https://instagram.com
Replace: https://ddinstagram.com
Only if includes: /p/
Fix All Text
Match:
\b\w+\b
Replace:
Korbo
Reddit -> Rxddit so videos embed
Works for all subdomains (i.e. for old. de. etc)
Replace: https://rxddit.com```
Find: http(?:s)?://(?:www\.)?(threads\.net)
Replace: https://vx$1```
channel closed to whitenames because of too many stupid submissions.
the parameters on discord cdn links are not tracking parameters. removing them is stupid, do not do it
textreplace is not the right tool for removing tracking parameters. use https://vencord.dev/plugins/ClearURLs
to get write access to this channel, open a #📩-modmail ticket with your textreplace rule(s)
API Endpoint Replacement
Find:
(https?:\/\/api\.[a-zA-Z0-9-]+(\.[a-zA-Z]{2,})+)(\/[a-zA-Z0-9-._~:/?#[\]@!$&'()*+,;%=]*)?
Replace:[$3]($1$3)
Example:
ORIGINAL: https://api.example.com/this/is/a/real/endpoint
REPLACED: /this/is/a/real/endpoint
Help people become independent and google things on their own
find: \s+
replace: +
Only if includes: lmg:
AND
find: lmg:(?<query>.*)
replace: <https://lmgtfy2.com/?s=d&q=$<query>>
Example:
original: lmg:what is vencord
replaced: https://lmgtfy2.com/?s=d&q=what+is+vencord
(I do not own nor operate this site)
You can replace the s=d with s=g if you want google or other letters for other search engines, check: https://lmgtfy2.com/ for info
Alternatively you can just replace lmgtfy2 with google, duckduckgo or most search engines directly.
example image
Twitch to fxTwitch make twitch embeds not suck
(I do not own nor operate this site)
This is work for both clips.twitch.tv/id links AND www.twitch.tv/channel/clip/id clips
Using Regex
Find:
https?:\/\/(?:clips\.twitch\.tv|(?:www\.)?twitch\.tv\/\w+\/clip)\/([A-Za-z0-9\-_]+)
Replace:
https://fxtwitch.seria.moe/clip/$1
Server by https://github.com/seriaati/fxtwitch
Thanks nico
API Endpoint Replacement 2.0.0
(@marsh pollen bullied me cus of the old version :c)
Find:
(https?:\/\/api\.[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6})(\/[^\s][-a-zA-Z0-9()!@:%_\+.~#?&\/\/=]*)/gm
Replace:[$2]($1$2)
- Fixed urls like https://api.example.com/ being replaced to /
- And just improved the regex :3
Replaces <pkg>:<pkg_name> with the appropiate link
match: ^<pkg>:(\S+)
replace: <pkg_url>$1
Listed below is the rules for NPM, Python, Go, etc
<pkg> <pkg_url>
go https://pkg.go.dev/$1
pip https://pypi.org/project/$1
npm https://npmjs.org/package/$1
You can also basically use this for anything else like helping someone https://google.it i hate regex so much 
Mask github commit links (like done in github)
match: (https:\/\/github\.com\/[^\/]+\/[^\/]+\/commit\/([0-9a-f]{7})([0-9a-f]{0,33}))
replace: [`$2`]($1)
Example:
https://github.com/Vendicated/Vencord/commit/af498e78291b67377aaf876c84143cdfe7c8b308
goes to
- Alternatively if you don't want the embed you can set the replace to
[$2](<$1>)
Github
Mask Github Issue and PR Links
Use RegEx
Issue
Find: (https:\/\/github\.com\/[^\/]+\/[^\/]+\/issues\/([0-9a-f]{1,}))
Replace: [`Issue #$2`]($1)
No Embed version
Find: (https:\/\/github\.com\/[^\/]+\/[^\/]+\/issues\/([0-9a-f]{1,}))
Replace: [`Issue #$2`](<$1>)
Pull Requests
Find: (https:\/\/github\.com\/[^\/]+\/[^\/]+\/pull\/([0-9a-f]{1,}))
Replace: [`Pull Request #$2`]($1)
No Embed Version
Find: (https:\/\/github\.com\/[^\/]+\/[^\/]+\/pull\/([0-9a-f]{1,}))
Replace: [`Pull Request #$2`](<$1>)
Thanks to @lofty meteor for the idea, also @vagrant pilot for the original post about Commits above.
Ex.
Issues: Issue #2787
PRs: Pull Request #2782
AutoMaskLink Minecraft bugs
RegEx :
find: (?:^|(?<=[\s,:;/&]))MC-\d+(?:(?=[\s.?!,:;/&])|$)
replace: [$&](<https://bugs.mojang.com/browse/$&>)
Nerd Explanation :
The purpose of the (?:^|(?<=[\s,:;/&])) and (?:(?=[\s.?!,:;/&])|$) is to prevent matching links that contain the core text, but still allow some punctuations
(https://bugs.mojang.com/browse/MC-1 won't get replaced by example)
The reason is proper rules to handle links will come later
Example :
MC-1
Twitch Clip Replacement
Reddit link finder
**FX BlueSky /fxbsky ** because even bsky can't make embeds work.
This is ran by the owner of FXTwitter/fixupx, not me.
Find: https://bsky.app
Replace: https://fxbsky.app
Only if includes: /post/```
Fix spoilered embeds
GitHub repo's with gh:
Find: gh:([a-zA-Z0-9_-]+)/([a-zA-Z0-9_.-]+)
Replace: [$1/$2](https://github.com/$1/$2)
Example:
Input: gh:Vendicated/Vencord
Output: [Vendicated/Vencord](https://github.com/Vendicated/Vencord)
Output:
Vendicated/Vencord
MegaHusk
find: :megahusk:
replace \n\n\n
sends: (its bigger normally)




AutoLink XKCDs
Note : the order of the rules matter
RegEx :
find: (?:^|(?<=[\s,:;/&]))xkcd\/(?:text editors|nano|vim|emacs)(?:(?=[\s.?!,:;/&])|$)
replace: xkcd/378
find: (?:^|(?<=[\s,:;/&]))xkcd\/standards(?:(?=[\s.?!,:;/&])|$)
replace: xkcd/927
find: (?:^|(?<=[\s,:;/&]))xkcd\/(?:workflow|it works for me|my setup)(?:(?=[\s.?!,:;/&])|$)
replace: xkcd/1172
find: (?:^|(?<=[\s,:;/&]))xkcd\/(\d+)(?:(?=[\s.?!,:;/&])|$)
replace: [$&](https://xkcd.com/$1)
Note 2 : i have manually removed embeds for these example cause it would be way too big otherwise
Example :
xkcd/nano
xkcd/standards
xkcd/workflow
xkcd/1823
loss
find: loss
replace: ~~:.|:;~~
:?:
find: :?:
replace: ❓
cleaner twitter links
add "src" on the end of the link
using regex
find: https\:\/\/(?:.*?twitter.*?|.*?x.*?)\.com\/([a-zA-Z0-9_]+\/status\/\d+)\S*src
replace: [[source]](<https://fxtwitter.com/$1>) [[raw]](https://fxtwitter.com/$1.mp4)
reddit link embedder but better, please forgive me for this monstrosity
find: http(?:s)?:\/\/(?:redd\.it\/|(?:[\w-]+\.)?r[ex]ddit\.com\/)(?:(r\/[\w-]+\/s\/\w+)|(u)(?:ser)?(\/)([\w-]+)(.*?)?|(?:(?:r\/[\w-]+\/)?((c)omments\/))(\w+)(?:\/[^\/\s\)\]\}]+)+(\/)(\w+)|(?:(?:(?:r\/[\w-]+\/)?comments\/)|(?<=redd\.it\/))(\w+)(?:\/.*?)?|(?!r\/|u\/|user\/|comments\/)(.*?)?)\/?(?:[?#][^\s\)\]\}]*)?(?=[\s\)\]\}]|$)
replace: https://rxddit.com/$1$2$3$4$5$6$8$9$7$9$10$11
```supports replacing these formats ```
https://reddit.com/r/sub/comments/postid/commentslug/commentid
https://reddit.com/r/sub/comments/postid/postslug
https://reddit.com/comments/postid/commentslug/commentid
https://reddit.com/comments/postid
https://reddit.com/r/sub/s/shareid
https://reddit.com/user/username
https://reddit.com/user/username/userpage
(existing subdomain and rxddit.com links of the above)
https://redd.it/postid
TENOR EMBED FIXER
Fixes links taken from the Tenor website, in light of recent devastating API changes.
- Removes locale from indirect Tenor links
- Add ?download=1 to "direct" Tenor links
regex, 2 rules
FIND: (https:\/\/media\d+\.tenor\.com\/m\/[^?\s]+)
REPLACE: $1?download=1
FIND: https:\/\/tenor\.com\/(?:[a-zA-Z]{2}(?:-[a-zA-Z]{2})?\/)?view
REPLACE: https://tenor.com/view
26.04.2026 EDIT: It seemed to stop working after update so I updated regex 
Add IRC /slap command
- Find:
^\/slap\s+?(\S+.*) - Replace:
_slaps $1 around a bit with a large trout_
Create User Mention While Pasting Only the UserID
-# so u paste the userid and itll juts add the ping things
-# only works if the whole message is just the id, also can add @silent if u want
Find^\d{17,20}$Repl<@$&>