QuantumBadger / QuantumBadger/RedReader

Twitter special treatment

Open
#602 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
Java
Stars
2.7k
Forks
527
Avg merge
20d 10h
Merged PRs (30d)
3

Description

Twitter's mobile site seems to be awful. Most of the time when opening reddit links to twitter, the first page load fails with a "You are not authorised to view these tweets" or "Twitter took too long to respond". Refreshes sometimes fix the issue. I've managed to reproduce this on a desktop by hitting mobile.twitter.com with the User-Agent and X-Requested-With headers set to the same as RedReader. Looking at the network console, the https://api.twitter.com/2/timeline/conversation/$id.json call literally just hangs.

This is undoubtedly a Twitter issue and - if I were to put my tin-foil hat on - is perhaps deliberate to encourage people to use the app rather than the mobile site.

It would be nice if RedReader could work around this by:

  • Allowing users to enable desktop UA spoofing and suppressing the X-Requested-With header for Twitter to make the page loads as reliable as they are in a desktop browser

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure when opening Reddit links to Twitter with the RedReader User-Agent and X-Requested-With headers, then compare it with a desktop browser request. Investigate the Twitter link-loading path and determine whether desktop UA spoofing and suppressing X-Requested-With improve reliability. Done means the workaround is user-configurable and the reported Twitter page-load failures are reduced.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.