Skip to content

Add option to convert x.com links to xcancel.com links #2664

@netmojo

Description

@netmojo

Describe the problem you're trying to solve

There are many links to x.com posted to SN. Since I decided to move to NOSTR, and deleted the X app, when I tap a link to x.com in the SN PWA, I get this on mobile Safari:

Image

One work-around is to replace x.com in the URI with xcancel.com. To take 1296130 as an example:

https://xcancel.com/AusBTCIndBody/status/1994885813705085375

From the XCancel About page:

XCancel is an instance of Nitter.

Nitter is a free and open source alternative Twitter front-end focused on privacy and performance. The source is available on GitHub at https://github.com/zedeus/nitter

  • No JavaScript or ads
  • All requests go through the backend, client never talks to Twitter
  • Prevents Twitter from tracking your IP or JavaScript fingerprint
  • Uses Twitter's unofficial API (no developer account required)
  • Lightweight (for @nim_lang, 60KB vs 784KB from twitter.com)
  • RSS feeds
  • Themes
  • Mobile support (responsive design)
  • AGPLv3 licensed, no proprietary instances permitted
  • Nitter's GitHub wiki contains instances and browser extensions maintained by the community.

Why use Nitter?

It's impossible to use Twitter without JavaScript enabled, and as of 2024 you need to sign up. For privacy-minded folks, preventing JavaScript analytics and IP-based tracking is important, but apart from using a VPN and uBlock/uMatrix, it's impossible. Despite being behind a VPN and using heavy-duty adblockers, you can get accurately tracked with your browser's fingerprint, no JavaScript required. This all became particularly important after Twitter removed the ability for users to control whether their data gets sent to advertisers.

Using an instance of Nitter (hosted on a VPS for example), you can browse Twitter without JavaScript while retaining your privacy. In addition to respecting your privacy, Nitter is on average around 15 times lighter than Twitter, and in most cases serves pages faster (eg. timelines load 2-4x faster).

So aside from the links not working without an X account in some instances, there are other good reasons to use Xcancel.com.

Describe the solution you'd like

I propose an option in Settings that allows users to auto-convert x.com links to xcancel.com ones. Maybe it could be called User Nitter for x.com links.

If enabled, x.com links in the user's feed would automatically be converted to xcancel.com ones.

Another idea would be to add it to the Post options, so that when the user enters an x.com URL, an option appears:

I'm also going to ask the Nitter project to get themselves an LNAddress, so users can easily Zap them some sats. If this idea gets implemented on SN, their traffic will go up, and generous SN users may help with their hosting costs.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurenew product features that weren't there before

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions