#🗒-textreplace-rules

1 messages · Page 1 of 1 (latest)

ashen sage
#

FxTwitter/VxTwitter/TxTwitter/SxTwitter/Nitter

Use String Replacement
To use a different service than FxTwitter, just change the replacement to whatever u want

Find: https://twitter.com
Replace: https://fxtwitter.com
Only if includes: /status/
#

No Canary Message Links

Use Regex Replacement

Find: https://(canary|ptb)\.discord\.com/channels
Replace: https://discord.com/channels
granite saddle
#

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/```
floral schooner
#

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/```
astral summit
#

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
true pelican
#
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!

tranquil loom
#

is there any regex sed that can capitalize the first letter of a message?

#

i tried \U but it doesnt work

mental vortex
#

regex

open ravine
#

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
foggy gazelle
#

regex mode

Find: https:\/\/youtube\.com\/watch\?v=.*
Replace: https://www.youtube.com/watch?v=dQw4w9WgXcQ

trolley

gray kernel
barren mulch
#

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```
crimson swift
#

ddinstagram regex

mental vortex
#

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
soft sorrel
#

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 sad

SOLVED: dev updated plugin, \n breaks line

open ravine
#

CurseForge mod modpack project links

tired sedge
#

Twitch Clip Replacement

Find: clips.twitch.tv
Replace: clips.txitch.tv
Find: www.twitch.tv
Replace: txitch.tv
Only if includes: /clip/
open ravine
#

🗿 (best used with the 🗿sound plugin)

Find: Moyai
Replace: :moyai:

Find: moyai
Replace: :moyai:
granite saddle
#

FxRoblox

Use String Replacement

Replace: https://www.fxroblox.com```
floral schooner
#

FxPixiv

Use Regex

Replace: fxpixiv.net
Only if includes: /artworks/```
distant canopy
#

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```
slow jasper
#

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

mental vortex
#

Fandom wiki -> Breezewiki
aka neater fandom wiki pages

replace: breezewiki
only if includes: .com/wiki/```
swift elbow
#

Fandom wiki Breezewiki

barren mulch
#

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
keen wigeon
#

Send YouTube videos using shortened link

USING REGEX
Find: https?:\/\/(?:www\.)?youtube\.com\/(?:watch\?v=|embed\/)([\w\-]+)
Replace: https://youtu.be/$1
craggy dawn
silent quarry
#

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```
thorn vortex
#

Discord Proxy to CDN

Find: https:\/\/media\.discordapp\.net(?=\/)
Replace: https://cdn.discordapp.com
tawdry hound
#

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
ashen sage
strange relic
#

fear


Find: $
Replace: \n\nSent from Vencord™️ for Discord™️, the best client mod!

fear Classic™️


Find $
Replace: \n\nSent from Vencord:tm: for Discord:tm:
open ravine
pulsar zenith
#
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.

quartz brook
#
Replace: https://bsyy.app/
Only if includes: /post/

Embed bluesky posts like fx/vxtwitter in discord

keen wigeon
#

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
neon pike
#

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
hushed umbra
#

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 Heart

+ 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
zinc ingot
#

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??

lone holly
solar acorn
#

Does this but Celsius because its way

true pelican
#

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>]($&)
tepid patrol
#

Sticker links are hidden to send text

thorn scroll
#

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```
thorn scroll
#

This one makes a cute ˗ˏˋ Hi ˎˊ˗ effect, when you type 'Hi'

Using Regex:

'+([H|h])+([I|i])+'

Replace:
˗ˏˋ Hi ˎˊ˗```
mental vortex
#

End all your messages by a "."

Find: ^(.*?)\.?\s*$
Replace: $1.
fiery acorn
#

End all your messages by a

true pelican
#
Find: ae
Replace: æ

Find: AE
Replace: Æ
fiery acorn
spark dawn
#

Replaces end of sentence \ incase of typos something i occasionally do

Replace: $1```
granite saddle
quasi fjord
#

this but for X links

magic crow
#

Regex Mode

Search: (^| )[xX]dD
Replace: :rofl:

unique panther
#

Anti-XD detected

steady wave
#

hi effect

steady wave
sterile rapids
#

Use string replacement

Find: gay
Replace: gæ
mental vortex
#

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

distant canopy
#

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/
strong oxide
#

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)
ashen sage
humble plume
#

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

noble jasper
#
Find: (https?:\/\/[\w.]+discordapp.(?:com|net)\/[\w]+\/[\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])

Replace: [⠀]($1)

Hide discordapp links. It could be an emoji/attachment/stickers, etc.

celest vessel
#

fix instagram post embeds

Find: https://instagram.com
Replace: https://ddinstagram.com
Only if includes: /p/
worldly barn
#

Fix All Text

Match:

\b\w+\b

Replace:

Korbo
carmine lynx
#

Reddit -> Rxddit so videos embed
Works for all subdomains (i.e. for old. de. etc)

Replace: https://rxddit.com```
ashen sage
#

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)

vagrant pilot
glossy mesa
#

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

hexed skiff
#

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

vagrant pilot
#

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)

primal storm
#

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 blobcatcozy

vagrant pilot
lofty meteor
#

Github

magic wharf
#

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

royal kayak
#

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

MC-1

tired sedge
#

Twitch Clip Replacement

royal kayak
#

Change temperature units to their Unicode counterpart

RegEx :

find: °C
replace: ℃
find: °F
replace: ℉

Example :

42°C
69°F

42℃
69℉

Also i'm working on smth really cool to post here but it's taking me really long to do so here's a little sneak peek
Pic 1 Pic 2

frosty arrow
#

Reddit link finder

hexed skiff
#

**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/```
ocean veldt
#

Fix spoilered embeds

mental vortex
#

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

fervent karma
#

MegaHusk

find: :megahusk:
replace \n![husk1](https://cdn.discordapp.com/emojis/1311092203829067816.webp?size=128 "husk1")![husk2](https://cdn.discordapp.com/emojis/1311092218349621338.webp?size=128 "husk2")\n![husk3](https://cdn.discordapp.com/emojis/1311092233520287765.webp?size=128 "husk3")![husk4](https://cdn.discordapp.com/emojis/1311092246405447801.webp?size=128 "husk4")\n

sends: (its bigger normally)

husk1husk2
husk3husk4

royal kayak
#

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

xkcd/378
xkcd/927
xkcd/1172
xkcd/1823

fervent karma
#

loss

find: loss
replace: ~~:.|:;~~

fervent karma
#

:?:

find: :?:
replace:

foggy obsidian
#

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)

sand atlas
#

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
mental arrow
#

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 okok

hollow vault
#

Add IRC ⁨/slap⁩ command

  • Find: ⁨^\/slap\s+?(\S+.*)
  • Replace: ⁨_slaps $1 around a bit with a large trout_
errant iron
#

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 <@$&>