1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

hooks.py: annulled black background on cygwin.com

This commit is contained in:
witekfl 2006-02-02 16:04:11 +01:00 committed by
parent efc724101e
commit 5388ccc5ef

View File

@ -1,3 +1,5 @@
import re
dumbprefixes = {
"7th" : "http://7thguard.net/",
"b" : "http://babelfish.altavista.com/babelfish/tr",
@ -31,6 +33,9 @@ def follow_url_hook(url):
return None
def pre_format_html_hook(url, html):
if re.search("cygwin\.com", url):
html2 = re.sub("<body bgcolor=\"#000000\" color=\"#000000\"", "<body bgcolor=\"#ffffff\" color=\"#000000\"", html)
return html2
return None
def proxy_for_hook(url):