That’s awesome, thanks for sharing!
Does anyone know of any web tools or Shortcuts that can do the same thing on iOS?
A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).
If you wanted to get help with moderating your own community then head over to [email protected]!
Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy
That’s awesome, thanks for sharing!
Does anyone know of any web tools or Shortcuts that can do the same thing on iOS?
You can install userscripts on Safari on iOS. Dunno though if it actually works. That's the cool thing about user scripts, they work basically anywhere if you want to.
Oh I didn’t know that! I installed Userscripts and the script, but haven’t been able to get it to work yet though…
Anyone else get it working?
If you can get any error message posted or sth I might be able to fix it, but I've got no way to test it on any apple device, that's a bit of a problem :D
Thanks! Sorry my “it’s not working” wasn’t very helpful, and unfortunately I don’t have any error messages. Here’s what I can see:
Things I tried which had no effect:
Violentmonkey and Tampermonkey did not seem to have iOS clients, but for troubleshooting purposes I installed the Gear browser app. I understand Gear has it’s own browser engine and supports userscripts directly. After installing the LULs the script worked when browsing in Gear.
I’m not likely to switch from Safari to Gear for browsing, so ideally it would be great to get it working in Safari.
Are there any other troubleshooting steps or settings in Safari you could suggest to get it working?
The fact that it did ask you to set home once at least means that it's running. It's likely running into an error somewhere.
Honestly iOS and Safari (and Apple in general) were one of the worst developer experiences I've ever come across, which is why I've not looked into it at all so far ... Actually I have looked into it just now, and I basically need an Apple device to do anything. Or virtualize Mac os which then virtualizes iOS, which probably costs some hours to all set up, yay. I hate this shitty company and its overpriced garbage.
So yeah, sorry for that rant... but if you could search for some way to open the debug console of Safari and see some sort of error message I could probably do something. Apparently it's somewhere in the advanced/developer settings.
Thanks for looking into it. I did find the debug console setting while I was poking around earlier. It needs to connect to a PC so I’ll give it a go tomorrow.
Annoyed that fmhy got taken out
wait what, what are you talking about?
Annoyed that fmhy got taken out
Looks like it. lemmy.fmhy.ml:
Edit: 20230717 BBC — Typo sends millions of US military emails to Russian ally Mali
I vaguely recall that they received a takedown notice.
for their main site or for their lemmy instance or both?
?
If I already have it installed in Tempermonkey, is there a way to update or do I need to remove and download again?
It updates automatically through your configured update interval, or you can go to the page and click "update".
You can update all userscripts with Tampermonkey. For me, it was in Utilities -> Check for userscript updates
.
I won't need i, but thank you on behalf of the ones who do.
Thanks for the update
I don't know if it's intended behavior, but the 'context' button when viewing responses to your posts does not change to your home instance. I was trying to understand how to work around that yesterday. It appears the title link works, but now I'm not certain whether it's because of the script.
I'll take a look when I'm back home :) could be that the context links aren't really "links" at all, but "buttons", which aren't detected by my script.
If you look at the post, you see some screenshots/videos, there's this little icon with two arrows in a circle that signifies if a link was rewritten, which is how you can check if it's working.
Yeah that's what I thought. This is how those buttons look in code:
The problem is that there's no destination identifier attached. If you compare that with your name at the top of your comment:
, there's an <a>
(and href=
) that identifies this as a link to somewhere. The buttons have no such identifying text with them, so I can't rewrite them because I don't know where they lead, it's hidden within the application logic somewhere.
Nice
Would this work if I opened a link from an app to the browser? Or does it have to be a link clicked on within the browser?
Also what if the home instance uses a directory other than the default /c/ for communities?
When you open a link from somewhere else, a "Show on home instance" link will be added to the top bar. Only within the browser will it automatically replace links.
I so far only support Lemmy. No one has made any other requests. So if not /c/ is used, it doesn't know how to handle communities.
lemmy.fmhy.ml
It was for the music in a linked game download, and owner decided to close up shop.
Oh, I thought it had something to do with the script. I mean I guess I could keep defunct instances around, but idk how useful that would be, and how to verify that the domain didn't change to something completely unrelated...
Hi @[email protected], thanks for this great tool!
What is the best way to submit servers to be added? I notice that diagonlemmy.social doesn't seem to be on the list. I could edit the script at my end, but that would solve the problem only for me, and likely be overwritten next time the list is updated.
An a related note, is there a Lemmy community for LULs?
I will update the instance list. I have a script that parses lemmyverse.net data and updates the list within the script, but I need to run it manually.
Generally all issues/requests can be added in https://gitlab.com/azzurite/lemmy-universal-link-switcher/-/issues. There is no Lemmy community for it. How did you find this? I had like 3 people suddenly write on this year old thread.
I will update the instance list.
Thanks!
Generally all issues/requests can be added in https://gitlab.com/azzurite/lemmy-universal-link-switcher/-/issues.
I would need a GitLab account for that, correct? Is it worth it?
How did you find this? I had like 3 people suddenly write on this year old thread.
I went from my Violentmonkey dashboard to the GitLab page, searched Lemmy for "Azzurite", and this post was the top result. Once I commented, it must have shown up for users sorting by "New Comments".
The lemmy.ml instance