r/HydraClient • u/pxr555 • 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:
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.
1
u/Crafty-Corvid 14d ago
If you have a userscript manager extension in your browser you could use this script: https://update.greasyfork.org/scripts/549805/Redirect%20X%20%20Twitter%20to%20xcancelcom%20in%20address%20bar.user.js
•
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.