mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Fixed.
This commit is contained in:
parent
c5a6e58e64
commit
c201ecbb46
@ -24,10 +24,10 @@ dumbprefixes = {
|
||||
|
||||
cygwin = re.compile("cygwin\.com")
|
||||
cygwin_sub1 = re.compile('<body bgcolor="#000000" color="#000000"')
|
||||
cygwin_sub2 = re.compile('<body bgcolor="#ffffff" color="#000000"')
|
||||
cygwin_sub2 = '<body bgcolor="#ffffff" color="#000000"'
|
||||
mbank = re.compile('https://www\.mbank\.com\.pl/ib_navibar_3\.asp')
|
||||
mbank_sub1 = re.compile('<td valign="top"><img')
|
||||
mbank_sub2 = re.compile('<tr><td valign="top"><img')
|
||||
mbank_sub2 = '<tr><td valign="top"><img'
|
||||
google_redirect = re.compile('^http://www\.google\.com/url\?sa=D&q=(.*)')
|
||||
|
||||
def goto_url_hook(url, current_url):
|
||||
@ -46,10 +46,10 @@ def follow_url_hook(url):
|
||||
|
||||
def pre_format_html_hook(url, html):
|
||||
if cygwin.search(url):
|
||||
re.sub(cygwin_sub1, cygwin_sub2, html)
|
||||
html2 = cygwin_sub1.sub(cygwin_sub2, html)
|
||||
return html2
|
||||
if mbank.search(url):
|
||||
html2 = re.sub(mbank_sub1, mbank_sub2, html)
|
||||
html2 = mbank_sub1.sub(mbank_sub2, html)
|
||||
return html2
|
||||
return None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user