twitter: pretend to be Windows 10 - firefox-fix-web - Firefox extension: fix web
(HTM) git clone git://git.codemadness.org/firefox-fix-web
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit c3f263a560549afadef48cb668af08ea91b41f1c
(DIR) parent 4962c0571299f0ed3af45630de874b3e333fc543
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 20 Dec 2020 11:20:19 +0100
twitter: pretend to be Windows 10
The site deprecated the mobile version and forces to use javascript.
Diffstat:
M extension/background.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/extension/background.js b/extension/background.js
@@ -22,7 +22,7 @@ var patterns = [
// Twitter: remove User-Agent, this prevents an annoying redirect to "legacy" Twitter each time.
{
"re": new RegExp(prefix + "twitter\.com\/.*"),
- "ua": ua_none
+ "ua": ua_windows10
}
];