mirror of https://gitlab.com/bashrc2/epicyon
Replace mitm text in text mode browsers to prevent excessive verbosity
parent
500e728c9b
commit
30e9fc9e1a
|
@ -171,9 +171,11 @@ def html_conversation_view(authorized: bool, post_id: str,
|
|||
current_reading_str = '<br><hr><br>\n'
|
||||
|
||||
# if using a text mode browser then don't show SHOW MORE because there
|
||||
# is no way to hide/expand sections
|
||||
# is no way to hide/expand sections.
|
||||
# Also replace MITM text with an eye icon
|
||||
if text_mode_browser(ua_str):
|
||||
conv_str = conv_str.replace(translate['SHOW MORE'], '')
|
||||
conv_str = conv_str.replace(translate['mitm'], '👁 ')
|
||||
|
||||
conv_str += text_mode_separator + html_footer()
|
||||
return conv_str
|
||||
|
|
|
@ -946,9 +946,11 @@ def html_timeline(default_timeline: str,
|
|||
'shares')
|
||||
|
||||
# if using a text mode browser then don't show SHOW MORE because there
|
||||
# is no way to hide/expand sections
|
||||
# is no way to hide/expand sections.
|
||||
# Also replace MITM text with an eye icon
|
||||
if is_text_browser:
|
||||
tl_str = tl_str.replace(translate['SHOW MORE'], '')
|
||||
tl_str = tl_str.replace(translate['mitm'], '👁 ')
|
||||
|
||||
tl_str += \
|
||||
_html_timeline_end(base_dir, nickname, domain_full,
|
||||
|
@ -975,9 +977,11 @@ def html_timeline(default_timeline: str,
|
|||
'wanted')
|
||||
|
||||
# if using a text mode browser then don't show SHOW MORE because there
|
||||
# is no way to hide/expand sections
|
||||
# is no way to hide/expand sections.
|
||||
# Also replace MITM text with an eye icon
|
||||
if is_text_browser:
|
||||
tl_str = tl_str.replace(translate['SHOW MORE'], '')
|
||||
tl_str = tl_str.replace(translate['mitm'], '👁 ')
|
||||
|
||||
tl_str += \
|
||||
_html_timeline_end(base_dir, nickname, domain_full,
|
||||
|
@ -1207,9 +1211,11 @@ def html_timeline(default_timeline: str,
|
|||
tl_str += _get_help_for_timeline(base_dir, box_name)
|
||||
|
||||
# if using a text mode browser then don't show SHOW MORE because there
|
||||
# is no way to hide/expand sections
|
||||
# is no way to hide/expand sections.
|
||||
# Also replace MITM text with an eye icon
|
||||
if is_text_browser:
|
||||
tl_str = tl_str.replace(translate['SHOW MORE'], '')
|
||||
tl_str = tl_str.replace(translate['mitm'], '👁 ')
|
||||
|
||||
tl_str += \
|
||||
_html_timeline_end(base_dir, nickname, domain_full,
|
||||
|
@ -1222,6 +1228,7 @@ def html_timeline(default_timeline: str,
|
|||
default_timeline, access_keys,
|
||||
box_name,
|
||||
enable_timing_log, timeline_start_time, ua_str)
|
||||
|
||||
tl_str += html_footer()
|
||||
return tl_str
|
||||
|
||||
|
|
Loading…
Reference in New Issue