From 6bf46d15ad48795a1c69a330c72c0def01c0ce02 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 13 Jul 2022 12:28:06 +0100 Subject: [PATCH] Support other text mode browsers --- webapp_timeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp_timeline.py b/webapp_timeline.py index 25263ec08..365b22ecc 100644 --- a/webapp_timeline.py +++ b/webapp_timeline.py @@ -385,7 +385,7 @@ def _html_timeline_keyboard(moderator: bool, text_mode_banner: str, def _text_mode_browser(ua_str: str) -> bool: """Does the user agent indicate a text mode browser? """ - if 'Lynx/' in ua_str: + if ('Lynx/', 'w3m/', 'Links (', 'eww/') in ua_str: return True return False