from subprocess import run, PIPE def engine2mdlnk(engine): return '' +engine+ "
\n"; html_head = ''' 配置重定向网址

配置重定向网址

超微浏览器下点击配置链接可自动添加重定向网址,强制清空后台重启 后可用。

配置文件"/sdcard/uweb/default.redirect"如下:
'''; html_tail =""; md_tail = ''' '''; selist = map(engine2mdlnk,[ "www.bilibili.com::www.ibilibili.com", "www.docin.com::www.docin365.com", "wenku.baidu.com::wenku.baiduvvv.com", "detail.tmall.com::detail.tmallvvv.com", "detail.m.tmall.com::detail.m.tmallvvv.com", "item.taobao.com::item.taobaovvv.com", "h5.m.taobao.com::h5.m.taobaovvv.com", "item.jd.com::item.jdvvv.com", "item.yhd.com::item.yhdvvv.com", "goods.kaola.com::goods.kaolavvv.com", "product.dangdang.com::product.dangdangvvv.com", "item.gome.com.cn::item.gomevvv.com.cn", "developer.android.com::developer.android.google.cn", ]); llist = [selist,"

"]; print(html_head) print(''.join(string for slist in llist for string in slist)) p = run(['marked', '--pedantic'], stdout=PIPE, input=md_tail, encoding='utf-8') print(p.stdout) print(html_tail)