Glad to hear it :) Post/comment support is coming!
The functionality in this script is indeed only possible as an addon or userscript. Browsers specifically spent a lot of work trying to make it impossible for one site to get any information about which other sites the user visited, and for good reason. Just imagine the phishing this would allow if it were possible.
That said, there could of course be an official lemmy browser addon/userscript for this functionality. But it definitely wouldn't be baked into the sites themselves.
Because idk if you noticed, but this script actually rewrites all links everywhere, so for example even if you get a result to some lemmy instance on duckduckgo, the link on duckduckgo itself will already point to your instance. Please tell me how that would be possible without an addon/userscipt :D
Very weird :D glad it works now though :)
Bin gerade an kbin und dann kommen posts :D
Shameless plug für mein Script, dass Links intern gehen lässt wenn möglich: https://greasyfork.org/en/scripts/469273-lemmy-rewrite-links-to-home-instance
(wenn man eh schon so am Scripts installieren ist)
Wild idea, but could it just be that you're using it wrong? :D if you're on lemmy.ca then almost nothing should be rewritten because almost all links already go to lemmy.ca. Only when you go to another instance somehow or a user posts a link, for example this one then it should be rewritten.
Anyway though, here is a debug version of the script: https://gitlab.com/-/snippets/2561468/raw/main/lemmy.user.js
To use, open the browser console, unselect all message types at the top right (errors, warnings, logs...) except for the "Debug" message type, then reload the page and right-click -> send me all messages.
I'm going to add a lot of logging and then give you a new version to try, then you can give me logs so I can diagnose this. There must be something weird about your setup, though I can't guess what.
Does it work again when you do a full refresh? So F5/press enter in the adress bar? If so then somehow listening to page changes is broken for you, lemmy doesn't actually load new pages when you click on an (instance-local) link, it just exchanges all the content within the currently loaded page.
Maybe try violentmonkey instead of greasemonkey, which does not seem to be in development anymore.
Yeah no idea, you can change DEBUG
from true
to false
and see if it's outputting any messages at all. I'd probably need to do some more advanced debugging steps, idk if you're willing to do that
@[email protected] yeah I don't know for some reason neither this nor my previous post gets picked up by the bot. Any idea why?
Go to https://greasyfork.org/en/scripts/469273-lemmy-rewrite-links-to-home-instance and press the button there. There's probably some throttling or whatever.
Yep I fucked up :D
That error's irrelevant. Can you check that you have version 1.0.2 not 1.0.1?
Now my userscript also works properly with this :D https://feddit.de/post/1025735
/r/dota2
r/DotA2: /r/DotA2 is the most popular English-speaking community to discuss gameplay, esports, and news related to Valve's award winning …
Let's try this again, maybe this time? :P
Alrighty, try updating, I've released a new version.
What addon are you using for userscripts?
Obviously this is good :D but how they're expressing this makes it sound as if they hadn't known that gameplay updates were popular with the players.
Of course they knew that, they're not totally incompetent. Just like any corporation, battle pass was prioritized because it generated the most revenue.
But now they noticed, that maybe only focusing on the battle pass and (eventually) losing all players who are the ones buying the battle pass is actually pretty bad for battle pass sales as well, since the people buying the battlepass would just not be there anymore to buy it.
So of course now they move back to more focus on gameplay updates, to get more/retain customers for the battle pass.
Of course they can't say it like this, that's why they have to sound as if they were incompetent and really thought cosmetics rather than gameplay updates were the most important thing for the players.
Stop using "All" "Hot/Active/Top" feeds and go search for actual content communities you want, by browsing the community lists, searching for your interests, or looking at new. Then just go to "Subscribed".
[UserScript] Lemmy Universal Link switcher, or LULs for short
Ensures that all URLs to Lemmy instances always point to your main/home instance.
Description
Lemmy Universal Link Switcher, or LULs for short, scans all links on all websites, and if any link points to a Lemmy instance that is not your main/home instance, it rewrites the link so that it instead points to your main instance. Currently only works for community/user links.
Home Instance Setup
Simply visit the Lemmy instance you want to set as your home while the script is active. You will be asked if you want to set this instance to your home instance: !home
If you initially set your home instance wrong or just want to change it, no worries - simply go to your settings on your new home instance and press the button for it! !settings
Features
-
Rewrite all links of communities or users on all websites everywhere to your new instance! The rewritten links will have an icon next to it, and hovering/touching the icon will show you the original link, allowing you to go there if you want to. !rewrite
-
If you are already on a page that has a corresponding page on your home instance, a link will automatically be added to the page header. !redirect
Coming soon
- Post & comment links. Those are a bit harder because the URL has to be requested from the instances.
Repository & Issues
Use an absolute link in request sidebar
When I went to https://feddit.de/c/[email protected] I noticed the sidebar links to /c/about
- which doesn't exist on feddit.de
I'd suggest to change the link to https://lemmit.online/c/about
so people from other instances can find it more easily.
kbin auf browse.feddit.de?
kbin scheint wohl jetzt gescheit zu federieren, wäre es möglich deren communities auf browse.feddit.de zu inkludieren?