News for hackers. Stuff that matters.
Re:Cool ice formations my friend discovered on his deck this... by halostatue on Sunday February 06, 2022 @04:39PM (#30237285)
It doesn’t help in-browser, but if you’re on macOS and using Finicky, you can add this to your `~/.finicky.js` under the `rewrite` rules:

    {
      match: ({ url }) => url.host === 'twitter.com',
      url: ({ url }) => {
        return { ...url, host: 'nitter.net' }
      },
    },
It goes along quite nicely with my `medium.com` to `scribe.rip` rule:

    {
      match: ({ url }) => url.host.endsWith('medium.com'),
      url: ({ url }) => {
        return { ...url, host: 'scribe.rip' }
      },
    },
(It should be possible to make it pick a random list from nitter mirrors.)

EDIT: Improved version that picks from random nitter redirectors (https://github.com/zedeus/nitter/wiki/Instances#third-party-...). It needs the following declared at the top of the `finicky.js` file:

    const NITTER_HOSTS = ['twiiit.com', 'twitit.gq']

    const nitterHost = () => NITTER_HOSTS[Math.floor(Math.random() * NITTER_HOSTS.length)]
Then the rewrite rule is:

    {
      match: ({ url }) => url.host === 'twitter.com',
      url: ({ url }) => {
        return { ...url, host: nitterHost() }
      },
    },

There are no comments on this comment yet.