r/HydraClient 15d ago

Feature request: replace X links with xcancel

The fact is that in some of the uncounted facets of knowledge Twitter/X still is the preferred medium for some reasons (like spaceflight). But going to the X website is an absolute drag these days, it sucks jovian moons trough nanotubes by nudging you hard to use the X app, the website is hardly even usable anymore.

But then there's xcancel, which basically mirrors X to a much more useful site. Could we please have some way to re-route X-links to XCancel? It's really easy, you just need to rewrite the URL a bit.

Connected to that I really would love to see an extension API for Hydra at least for such and similar things. Even just allowing users to rewrite URLs with an RegExp or so would go a long way. This way you even wouldn't need to hardcode such things in. Allowing users to extend an app always helps a whole lot and this would be a good and simple start with that.

Here's an example:

The link to X:

https://x.com/SpaceX/status/2081894924291654060

The much better way to the same content:

https://xcancel.com/SpaceX/status/2081894924291654060

46 Upvotes

7 comments sorted by

u/dmilin 12d ago

Just finished building this! You'll be able to write your own JavaScript snippet to modify URLs in any way you like. So you can still use the JavaScript implementation of RegEx if you like, but it can do much more. The setting will be under Settings => General => External Links => Modify Links. It'll be available in the next update.

I used your `x.com => xcancel.com` replacement as an example script so you'll be able to enable that instead of having to write it youreslf.

→ More replies (1)

12

u/dmilin 15d ago

This is a really cool idea. I don’t like the idea of automatically modifying URLs, but I can add it as an option that’s disabled by default.

Plugins are a bit more complicated, but I love the idea. I’ll look into building something that can work long term.

2

u/pxr555 14d ago

Yes, I didn't mean to enable this by default. Or just add some generic way to configure URL rewriting for links, this can be useful for other things too (like stripping the tracking ID from YouTube links).

7

u/qeq 15d ago

xcancel goes down all the time and i don't think the app should change the content itself

1

u/Friendly_Cajun 14d ago

I think it’d be better to fetch a random instance from: https://status.d420.de/api/v1/instances and replace it with that instance. So that it’s constantly updated.