Another text mode browser

main
bashrc 2026-07-13 14:05:36 +01:00
parent 9ab0b00e4d
commit ccb2d285be
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ def text_mode_browser(ua_str: str) -> bool:
"""Does the user agent indicate a text mode browser?
"""
if ua_str:
text_mode_agents = ('Lynx/', 'w3m/', 'Links (', 'Emacs/', 'ELinks')
text_mode_agents = (
'Lynx/', 'w3m/', 'Links (', 'Emacs/', 'ELinks', 'chawan'
)
for agent in text_mode_agents:
if agent in ua_str:
return True