mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Mended broken html on www.mbank.com.pl
This commit is contained in:
parent
347970988d
commit
1f19d7c55d
@ -36,6 +36,9 @@ def pre_format_html_hook(url, html):
|
|||||||
if re.search("cygwin\.com", url):
|
if re.search("cygwin\.com", url):
|
||||||
html2 = re.sub("<body bgcolor=\"#000000\" color=\"#000000\"", "<body bgcolor=\"#ffffff\" color=\"#000000\"", html)
|
html2 = re.sub("<body bgcolor=\"#000000\" color=\"#000000\"", "<body bgcolor=\"#ffffff\" color=\"#000000\"", html)
|
||||||
return html2
|
return html2
|
||||||
|
if re.search("https://www.mbank.com.pl/ib_navibar_3.asp", url):
|
||||||
|
html2 = re.sub("<td valign=\"top\"><img", "<tr><td valign=\"top\"><img", html)
|
||||||
|
return html2
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def proxy_for_hook(url):
|
def proxy_for_hook(url):
|
||||||
|
Loading…
Reference in New Issue
Block a user