takuy / yourls-replacetext

This plugin for YOURLS allows you to create redirects based on regex patterns, simple text replacements or script.
MIT License
0 stars 0 forks source link

Not an issue just need lil help #2

Open anubhavhirani opened 6 months ago

anubhavhirani commented 6 months ago

Hello! I am not well-versed in tech, but I want to achieve the following if possible with your plugin:

if I input the URL to shorten: www.reddit.com/xyz URL to be shortened: www.rxddit.com/xyz

Changing the domain above fixes the embeds for Discord.

Similarly for Instagram: www.instagram.com/xyz URL to be shortened: d.ddinstagram.com/xyz

I appreciate any help you can provide. :)

takuy commented 5 months ago

Just want to clarify here, you're looking to automatically make short URLs where if the Long URL is an instagram or reddit link, redirect to their Discord-embeddable counterparts?

Ie. Short URL: https://shrt.url/whatever Long URL: https://www.reddit.com/r/pics/comments/haucpf/ive_found_a_few_funny_memories_during_lockdown/ Where you actually end up: https://www.rxddit.com/r/pics/comments/haucpf/ive_found_a_few_funny_memories_during_lockdown/

anubhavhirani commented 5 months ago

Yes, exactly as you described.