mirror of https://gitlab.com/bashrc2/epicyon
Sequence of removals
parent
1fbe5ad341
commit
366cde8fe2
|
|
@ -191,8 +191,8 @@ def html_conversation_view(authorized: bool, post_id: str,
|
|||
# is no way to hide/expand sections.
|
||||
# Also replace MITM text with an eye icon
|
||||
if text_mode_browser(ua_str):
|
||||
conv_str = text_mode_removals(conv_str, translate)
|
||||
conv_str = replace_embedded_map_with_link(conv_str, translate)
|
||||
conv_str = text_mode_removals(conv_str, translate)
|
||||
elif is_private_browser(ua_str):
|
||||
conv_str = replace_embedded_map_with_link(conv_str, translate)
|
||||
|
||||
|
|
|
|||
|
|
@ -509,8 +509,8 @@ def prepare_post_from_html_cache(nickname: str, post_html: str, box_name: str,
|
|||
translate,
|
||||
'audio')
|
||||
# replace MITM text with an eye icon
|
||||
post_html = text_mode_removals(post_html, translate)
|
||||
post_html = replace_embedded_map_with_link(post_html, translate)
|
||||
post_html = text_mode_removals(post_html, translate)
|
||||
elif is_private_browser(ua_str):
|
||||
post_html = replace_embedded_map_with_link(post_html, translate)
|
||||
|
||||
|
|
|
|||
|
|
@ -704,8 +704,8 @@ def html_profile_after_search(authorized: bool,
|
|||
break
|
||||
|
||||
if text_mode_browser(ua_str):
|
||||
profile_str = text_mode_removals(profile_str, translate)
|
||||
profile_str = replace_embedded_map_with_link(profile_str, translate)
|
||||
profile_str = text_mode_removals(profile_str, translate)
|
||||
elif is_private_browser(ua_str):
|
||||
profile_str = replace_embedded_map_with_link(profile_str, translate)
|
||||
|
||||
|
|
|
|||
|
|
@ -912,8 +912,8 @@ def html_timeline(default_timeline: str,
|
|||
# is no way to hide/expand sections.
|
||||
# Also replace MITM text with an eye icon
|
||||
if is_text_browser:
|
||||
tl_str = text_mode_removals(tl_str, translate)
|
||||
tl_str = replace_embedded_map_with_link(tl_str, translate)
|
||||
tl_str = text_mode_removals(tl_str, translate)
|
||||
elif is_private_browser(ua_str):
|
||||
tl_str = replace_embedded_map_with_link(tl_str, translate)
|
||||
|
||||
|
|
@ -945,8 +945,8 @@ def html_timeline(default_timeline: str,
|
|||
# is no way to hide/expand sections.
|
||||
# Also replace MITM text with an eye icon
|
||||
if is_text_browser:
|
||||
tl_str = text_mode_removals(tl_str, translate)
|
||||
tl_str = replace_embedded_map_with_link(tl_str, translate)
|
||||
tl_str = text_mode_removals(tl_str, translate)
|
||||
elif is_private_browser(ua_str):
|
||||
tl_str = replace_embedded_map_with_link(tl_str, translate)
|
||||
|
||||
|
|
@ -1191,9 +1191,9 @@ def html_timeline(default_timeline: str,
|
|||
# is no way to hide/expand sections.
|
||||
# Also replace MITM text with an eye icon
|
||||
if is_text_browser:
|
||||
tl_str = replace_embedded_map_with_link(tl_str, translate)
|
||||
tl_str = text_mode_removals(tl_str, translate)
|
||||
tl_str = text_mode_replacements(tl_str, translate)
|
||||
tl_str = replace_embedded_map_with_link(tl_str, translate)
|
||||
elif is_private_browser(ua_str):
|
||||
tl_str = replace_embedded_map_with_link(tl_str, translate)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue