New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect links from Youtube to Invidious, and from Twitter to Nitter #821
Comments
Some overlap with #768 , and maybe clearURLs if it ever gets made into a library, might have these. It might also be nice to have a rust library for these, but I wouldn't want to maintain it, because there are so many trackers to keep track of (heh). It'd be nice if it was a cross-language thing like regex so that it could easily be exported to any language / project. |
This issue here would be really basic, just a user configurable list of domains that get replaced. You dont need any regex or library for that. #768 also wouldnt be that complicated, you just remove all query parameters that start with |
Nice, looks like the clearUrls data is in json and regex: https://gitlab.com/KevinRoebert/ClearUrls/-/blob/master/data/data.json |
Reopening this, as now bots are imperfectly doing this with comments. One issue with the bot approach, besides the tons of extra comments, is the fact that many of these redirect urls will probably be gone in a few months, as these services go down constantly, meaning all of the current bot-generated redirect comments will likely be useless after a while. It would be nice for this to be an automated approach, ideally using that clearurls redirect file above, and maybe an instance setting for "use secure links". Another preference: don't actually rewrite inserts or links in the DB, only on fetching / retrieving post links and markdown bodies everywhere. |
There is this service called farside.link which was created because of the ephemeral nature of these instances. Putting this out in the unlikely scenario it is found helpful. |
Yeah that's actually extremely helpful, especially since it can use the original links. @Nutomic what do you think? Maybe a server setting with some description? And then do you think this re-writing work should be done on the front end, or back end? |
I agree that we should store original links in the database and convert when rendering. However a server setting wouldn't be enough because every instance would have some users who want to use these redirects and others who don't. A user setting would also not be sufficient, because someone might want to use twitter via nitter, but access youtube directly. Or use mobile apps like newpipe which need the original youtube link. So I think the best solution is to do this conversion in the frontend, and show both links for the user to choose when browsing. |
I find this really annoying. I already have libredirect configure to redirect me to my favorite instances why would you want to redirect me to one I don't like? |
few suggestions:
Also Farside is basically just one developer. They could use help, so encouraging Lemmy community to go help would probably benefit everyone.
Wouldn't it be better to have user choose in their settings whether they want redirecting to happen or not? Point 2 on the list above. |
Considering how many of these external service routers have died over time, I think we should let front-ends, and web browser plugins handle link-rewriting, and not do any link-rewriting in the backend. |
I definitely like this table idea, assuming that
|
This might be a nice optional feature to have at some point. Basically a user setting where you can rewrite the domain for any links clicked. In the UI it could be a table like this:
So in this case, this user would get any links to
youtube.com
intoinvidio.us
links. Whether in post links, comments or private messages. Of course we would have to avoid overloading any single instance.Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: