You could do this with an extension, yes.
I'm pretty sure you can find an extension to do this (most likely one of the redirector extensions). If not, then you'll have to develop one yourself.
Discuss PieFed project direction, provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics.
You could do this with an extension, yes.
I'm pretty sure you can find an extension to do this (most likely one of the redirector extensions). If not, then you'll have to develop one yourself.
I can make it so that web+pf://sopuli.xyz/post/32069389 opened it on your home instance. Would that do?
It has to start with web+ just because - https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler and I put pf after that because PieFed.
That would be quite something
Sounds mostly very cool! How would it know which one is my home instance?
There's going to have to be a 'register protocol handler' button (except not those words, something normal people would say) somewhere in the UI. When that's clicked it'll run navigator.registerProtocolHandler("web+pf", "https://piefed.ee/?to=%25s"); so your home instance is whichever instance you clicked that button on.
Looks like this idea only really works on desktop browsers, mobile ones don't do it - https://caniuse.com/registerprotocolhandler
Are you primarily on a phone or a desktop?
On Voyager(Android e/os) and desktop Firefox(Ubuntu) quite equally.
So, in this context the sensible answer is: Desktop.
I put together a prototype of this functionality, here's a demo - https://peertube.wtf/w/r8M4KpS6yLd9H2r2oPAs9M @blaze@lemmy.zip
Very cool!
It's good enough for me at the moment, but I don't have to retrieve remote posts that often
This is the kind of thing that apps handle well - I viewed your post from Voyager, and just had to click the sopuli.xyz link to get is resolved to my instance.
For the web browser experience: that link used to be a bit more visible (you can currently also get it from community sidebars, but it used to also be in post sidebars too). Someone complained though, and it was removed from post sidebars, so I assume they'd have the same complaint if it was re-surfaced again. You could just bookmark it, of course.
The page itself shouldn't be slow to load (it's a very lightweight page that's not doing anything until you click 'Retrieve'). It doesn't immediately redirect you to the post because the assumption was that you might want to retrieve more than one post at a time.
That said, if you're already viewing a page on the 'wrong' instance, then being able to change 'https' to 'web+pf' and have it work sounds cool (although it looks like Chrome makes highlighting 'https' into a 2-click experience).