podaboutlist / linkfix-for-discord

LinkFix brings link embeds back to your Discord server! Simply post Twitter, Instagram, TikTok, or Reddit links and LinkFix will reply with a rich media embed.
https://discord.com/application-directory/385950397493280805
GNU Affero General Public License v3.0
16 stars 4 forks source link

[Feature request] Add support for removing unnecessary data from links #70

Open DerekTurtleRoe opened 6 months ago

DerekTurtleRoe commented 6 months ago

Some examples could include:

Here are some more examples.

This could also be customized via commands for services that aren't supported yet, like:

Add site: /addsite example.com/tracking=referrer Replace with: /replacewith example.com

or something like that. This + #4 and #7 would make it pretty much perfect. 👍

TL;DR it would be nice if we could add support for removing tracking and other useless or unnecessary info from links, and have custom site support. 😄

RalphORama commented 6 months ago

Thanks for the suggestion!

LinkFix already removes tracking stuff when fixing YouTube Shorts and Twitter links (see here). I'm still working on database implementation for toggling features but once I get that done I'd be happy to add support for stripping regular YouTube links, Amazon, eBay, etc.

The goal is to be "set and forget" so I don't want to add features to modify links we aren't strictly "fixing" (i.e. providing a URL that better embeds, x.com -> fixupx.com) until I have the code implemented to toggle that kind of thing on/off on a per-server basis.

DerekTurtleRoe commented 6 months ago

@RalphORama If it isn't difficult I can try to look into adding those removal additions after you have added per-server configuration. 😄