Nitter: Alternative Twitter Front-End
github.com
github.com
To see the gt, read the contents of twitter.com
For example, using Chrome
chrome view-source:mobile.twitter.com
Ctrl-F gt=
or curl curl https://mobile.twitter.com|grep -o gt=[0-9]*
To retrieve tweets three steps are required: 1. retrieve the "guest token" (gt), 2. retrieve the "REST ID" (rest_id) for the twitter.com user and 3. submit a GraphQL query to retrieve the user's tweets.Javascript provided by Twitter in the twitter.com can do these three steps automatically (but this requires using a Javascript-enabled browser), or it can be done without a browser, e.g., with a different scripting language (personally I use the shell).
For example, some folks use Python:
But there must be some kind of IP based rate limiting or something, right? At least for DDoS protection even if it's not intended to prevent scrapping.
Yet it seems if you tell the average web developer that those sites should be accessible with software and hardware from that era, or even older in the case of Twitter (rendering short snippets of text and some small images doesn't require the latest technology, seriously), they'll become confused or indignant, or try to use some absurd argument to justify it.
Twitter and YouTube are great examples of a lot of the disturbing trends in web development today. Whatever it is, it's not "progress"!
I don't "contribute" to either one, nor do I have an account; I just go there to read or watch what others have contributed.
You can spoof your useragent to a mobile handset and visit https://mobile.twitter.com/ if you like a more bare-bones Twitter interface.
Not if you run your own for yourself.
firefox https://addons.mozilla.org/en-US/firefox/addon/privacy-redir...
chrome https://chrome.google.com/webstore/detail/privacy-redirect/p...
There's an anal process to enable it, and I think it only works in beta/fennec, but it works.
Once installed you'll quickly find out the 'More options' page - on which you can configure which servers are used for redirection - does not appear. Fortunately the actual URL is entered in the location bar, it just doesn't open the page. Simply press the button, then close the 'Settings' page using the arrow on the top-left of the screen, then select the location bar (which should now contain a moz-extension: URL) and press enter on the keyboard.
The extension works fine, at least for me, on Firefox Developer Nightly on Android.
[1] https://blog.mozilla.org/addons/2020/09/29/expanded-extensio...
[2] https://github.com/SimonBrazell/privacy-redirect/issues/140#...
No, I assume the real reason to be the fact that many extensions need to be adapted to mobile as can be gleaned from the non-appearance of the 'More options' page in PrivacyRedirect. Mozilla just chose a rather clunky and ham-fisted way to keep untested extensions from running on mobile. They could have added a simple option to allow untested extensions from the standard repo with a disclaimer of such a configuration not being supported.
Also, all your extensions need to be in a collection together, so this isn't the most useful.
You can use mine, which contains all the extensions I use, including privacy redirect, plus a few bonus extensions I don't normally use but which I think are useful: https://addons.mozilla.org/en-US/firefox/collections/1383278...
no longer works.
*I use "frontend" quite liberally here, i mean, honestly maybe a browser plugin that shrinks a tweet to half its size, indents replies much like HN comments are indented, and loads more tweets in a single page, maybe that would be enough to make Twitter 90% more pleasant to use.
Nitter: Alternative Twitter Front-End - https://news.ycombinator.com/item?id=21849744 - Dec 2019 (38 comments)
Example: I run a Mastodon instance on communick.com. I am thinking of running a nitter instance AND a secondary instance of Mastodon (or Pleroma) that acts as twitter mirror. I can then let users of the main communick instance to follow people on twitter, but still keeping them inside the Fediverse. The idea gets a bit more complicated if we want to make it two-way bridge, but I believe that can be done with a bit of Pleroma's MRF magic.
The beauty of this solution is that it does not require any change from those that have no interest in moving out of Twitter, but it does break the garden walls.
Have never run a nitter server, so maybe this is not possible - but could one be included as part of a web client? Ie, user surfs to "twinitter.com", receives a nitter server that takes their twitter credentials and starts posting their activity to the new chain and optionally to twitter also. If the user supplies no credentials, the server would simply run like a user-led crawler, adding more data to the new chain in what could be presumed to be some kind of optimum fashion, as it would always be the content users of the dual chains were interested in.
https://github.com/NicolasConstant/BirdsiteLive/blob/master/...
Nitter also supports RSS, so you can follow Twitter accounts in your feedreader.
What you can't do in either is reply back to Twitter profiles. BirdsiteLive sets the bridged toots (equivalent of tweets) as private, which on Mastodon renders as unsharable.
To use: Create a browser bookmark with its URL field set to the contents of the above ix.io page. Then, when on a page with twitter links, click your new bookmarklet before clicking the links. Title bar text will briefly say what the bookmarklet did.
"Spurious error" would probably be a better term.
Thanks, BTW, amazing tool.