7

I like browsing with Javascript disabled, and Twitter does not work without Javascript. This means all the links people give to regular Twitter URL's break without Javascript installed.

I'd like to redirect these url's to mobile.twitter.com, which works fine without Javascript, but mobile.twitter.com doesn't use the same URL structure (no hashbangs).

Is there a simple tool I can use to redirect twitter.com URL's to mobile.twitter.com?

Kevin Burke
  • 945
  • 4
  • 13
  • 31

2 Answers2

2

Though not an ideal solution, what I have done before is install a user agent faker/switcher plugin. Then configure to either iOS or Android. So long as the server (website that is visited) has been configured properly it should be redirected to the mobile version of the hyperlink. Unfortunately, far as I've seen, settings are global & lack site specific configuration. So the plugin will have to be disabled or a different browser used. When it is desired to browse in desktop mode.

Two possible candidates;
Chrome: User-Agent Switcher
Firefox: User Agent Switcher

Terus
  • 193
0

There is a chrome extension named Requestly that works like a charm for redirecting URLs to some other URLs. But incase of twitter, there is a gotcha. Since twitter use service workers to fetch their pages, redirect rule doesn't work for this usecase. So to make it work, we can use the insert script rule instead. You can refer to these answers to know how to make it work:

There's another way to achieve this use case through Requestly. You can directly use the user-agent rule to change the user-agent for twitter to any device (Android, IOS...)

enter image description here

Here you go. You can directly import this sharedlist directly. https://app.requestly.io/rules/#sharedList/1615179293900-Twitter-Mobile-User-Agent