#this but for X links

1 messages ยท Page 1 of 1 (latest)

dawn plank
#

oh sick its the same project

sacred gazelle
#

yup

dusky ocean
#

in the same project there is a way to add /language to the end of the url to translate the tweet, how can I do this in textreplace?

shadow owl
dusky ocean
#

ALready solved that

#

using regex

#

Fix X and translate tweet, just replace the last two letter in replace with your language code

Find: (https:\/\/)x\.com(\/[^/]+\/[^/]+)(\$?.*)?$
Replace: $1fixupx.com$2$3/pt
#

the same for links with twitter in the url

Find: (https:\/\/)twitter\.com(\/[^/]+\/[^/]+)(\$?.*)?$
Replace: $1fxtwitter.com$2$3/pt
#

this two text replace rules translate the text to portuguese