Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 2e63754

Browse files
author
goaiplayer
authored
Update Baidu.xml (#19265)
* Update Baidu.xml * Update Baidu.xml * Update Baidu.xml * Update Baidu.xml * Update Baidu.xml
1 parent ed241b3 commit 2e63754

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

src/chrome/content/rules/Baidu.xml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
usa.baidu.com
3838
v.baidu.com https on v.baidu.com/$ but redirect to http on other pages
3939
video.baidu.com https on list pages, redirect to http on video play pages
40-
www.video.baidu.com
41-
list.video.baidu.com
40+
www.video.baidu.com Equal to video.baidu.com
41+
list.video.baidu.com Equal to video.baidu.com
4242
4343
Shows another domain:
4444
downpack.baidu.com http://downpack.baidu.com/doctorthumb_AndroidPhone_1012469d.apk
@@ -224,17 +224,28 @@
224224
to="https://developer.baidu.com/" />
225225

226226
<target host="tieba.baidu.com" />
227-
<exclusion pattern="^http://tieba\.baidu\.com/f/search/res" />
227+
<test url="http://tieba.baidu.com/f/index" />
228228
<test url="http://tieba.baidu.com/mo/" />
229229
<test url="http://tieba.baidu.com/mo_wowap_pb/" />
230230
<test url="http://tieba.baidu.com/acer" />
231231
<test url="http://tieba.baidu.com/firefox" />
232232
<test url="http://tieba.baidu.com/skype" />
233-
<!-- Redirect to http: -->
233+
<rule from="^http://tieba\.baidu\.com/f/index/"
234+
to="https://jump.bdimg.com/f/index/" />
235+
<test url="http://tieba.baidu.com/f/index/" />
236+
<test url="http://tieba.baidu.com/f/index/forumclass" />
237+
<rule from="^http://tieba\.baidu\.com/f/search/"
238+
to="https://jump.bdimg.com/f/search/" />
234239
<test url="http://tieba.baidu.com/f/search/res" />
235240
<test url="http://tieba.baidu.com/f/search/res?" />
236241
<test url="http://tieba.baidu.com/f/search/res?qw=fire" />
237242
<test url="http://tieba.baidu.com/f/search/res?qw=fox" />
243+
<rule from="^http://tieba\.baidu\.com/hottopic"
244+
to="https://jump.bdimg.com/hottopic" />
245+
<test url="http://tieba.baidu.com/hottopic" />
246+
<test url="http://tieba.baidu.com/hottopic/" />
247+
<test url="http://tieba.baidu.com/hottopic/browse/hottopic" />
248+
<test url="http://tieba.baidu.com/hottopic/browse/hottopic?topic_id=277661&amp;topic_name=%E9%97%B7%E6%AD%BB%E8%80%81%E4%BA%BA%E4%BF%9D%E5%A7%86%E8%A2%AB%E5%88%91%E6%8B%98" />
238249

239250
<!-- Tieba mirrors and imgs -->
240251
<target host="c.tieba.baidu.com" />
@@ -264,6 +275,11 @@
264275
to="https://tieba.baidu.com/" />
265276
<test url="http://static.tieba.baidu.com/tb/editor/images/client/image_emoticon25.png" />
266277

278+
<target host="www.video.baidu.com" />
279+
<target host="list.video.baidu.com" />
280+
<rule from="^http://(www|list)\.video\.baidu\.com/"
281+
to="https://video.baidu.com/" />
282+
267283
<target host="zhidao.baidu.com" />
268284
<!-- MCB: -->
269285
<exclusion pattern="^http://zhidao\.baidu\.com/api/proxy" />

0 commit comments

Comments
 (0)