mlem icon indicating copy to clipboard operation
mlem copied to clipboard

Alternative Source Links in Posts

Open d42ohpaz opened this issue 1 year ago • 2 comments

From https://dubvee.org/post/1621850:

Other Lemmy App Devs: Please steal this feature from me

Feature: Alternate Source Selector

Implementation Difficulty: Easy

Live Example: https://tesseract.dubvee.org/c/[email protected] (The "link" icon to the left of the post's URL.)

Rationale: I'm quite annoyed with people whining "pAyWallED!" in news post comments, and this is Tesseract's way of addressing that (for users of that UI, anyway)

Description:

On posts with links (that aren't images, audio, video, Youtube, or other media), a dropdown menu is added with links to alternate sources.

Each one will search for the URL in the selected archive provider (currently Ghost Archive, Archive Today, 12ft.io) or Ground News (new in 1.4.5).

Lemmy-UI kind of does this, but completely ass-backwards (only during post creation to set the post link; I'll spare you my spiel about how that's a horrible vector for misinformation).

On Youtube-like posts (YT, Invidious, or Piped), the options are changed to go to the canonical YT link, your preferred Invidious instance, or your preferred Piped instance, but that's just a secondary (but still nice) feature of that component.

Would love to see something like this more widely adopted and am more than happy to answer any implementation questions.

d42ohpaz avatar Aug 02 '24 01:08 d42ohpaz

Basically, I'm providing (currently) 4 links on posts based upon the URL of the post. I'm presenting them as a dropdown menu in my implementation, but how it's presented to the end-user is completely up to the developer.

Conditions:

  • Post has a value in its url field.
  • Post is not an image, video, or audio file

Link Templates (where %s is the post URL, including scheme):

  1. Archive Today: https://archive.ph/%s
  2. Ghost Archive: https://ghostarchive.org/search?term=%s
  3. 12ft.io: https://12ft.io/proxy?q=%s
  4. Ground News (not an archive provider, but can search for similar coverage of the provided article that may not be paywalled): https://ground.news/find?url=%s

asimons04 avatar Aug 02 '24 02:08 asimons04

I like this idea, it should be pretty easy to do once 2.0 is up and running

Sjmarf avatar Aug 02 '24 14:08 Sjmarf