Skip to content

Commit 7163908

Browse files
committed
新增 [Presearch]、[豆瓣 - top250] 支持; 优化 [菜鸟教程] 规则
1 parent 9a93e46 commit 7163908

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

other/Autopage/rules.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,20 @@
294294
"scrollD": 2000
295295
}
296296
},
297+
"Presearch": {
298+
"host": "engine.presearch.org",
299+
"url": "/^\\/search/",
300+
"style": ".items-center.justify-center.text-black, .text-gray-300>div[x-data] {display: none !important;}",
301+
"pager": {
302+
"type": 6,
303+
"nextL": ".font-light.border-b-2.border-transparent:last-of-type>a",
304+
"pageE": ".text-gray-300>div, head>script:not([src])",
305+
"replaceE": ".font-light.border-b-2.border-transparent>a",
306+
"scriptT": 2,
307+
"loadTime": 500,
308+
"scrollD": 2500
309+
}
310+
},
297311
"WebCrawler 搜索": {
298312
"host": "www.webcrawler.com",
299313
"url": "return (fun.indexOF('qc=web','s') || !fun.indexOF('qc=','s'))",
@@ -375,12 +389,12 @@
375389
"replaceE": "#paginator"
376390
}
377391
},
378-
"豆瓣 - 分集短评/剧评影评/在看/想看/看过的电影/作品": {
392+
"豆瓣 - top250/分集短评/剧评影评/在看/想看/看过的电影/作品": {
379393
"host": "movie.douban.com",
380-
"url": "return (fun.indexOF(/^\\/subject\\/\\d+\\/(episode|tv_discuss)/) || fun.indexOF(/^\\/subject\\/\\d+\\/reviews/) || fun.indexOF(/^\\/people\\/\\d+\\/(do|wish|collect)/) || fun.indexOF(/^\\/celebrity\\/\\d+\\/movies/))",
394+
"url": "return (fun.lp() == '/top250' || fun.indexOF(/^\\/subject\\/\\d+\\/(episode|tv_discuss)/) || fun.indexOF(/^\\/subject\\/\\d+\\/reviews/) || fun.indexOF(/^\\/people\\/\\d+\\/(do|wish|collect)/) || fun.indexOF(/^\\/celebrity\\/\\d+\\/movies/))",
381395
"pager": {
382396
"nextL": "link[rel='next']",
383-
"pageE": "#comments, .review-list, .grid-view, .grid_view>ul>li",
397+
"pageE": ".grid_view, #comments, .review-list, .grid-view, .grid_view>ul>li",
384398
"replaceE": ".paginator"
385399
}
386400
},
@@ -4318,7 +4332,7 @@
43184332
"菜鸟教程": {
43194333
"host": "www.runoob.com",
43204334
"url": "if (location.pathname.split('/').length>2 && fun.getCSS('#leftcolumn')) return true",
4321-
"style": "#comments, #postcomments, #respond, #footer {display: none !important;} .article-intro h1:not(:nth-of-type(1)) {margin: 30px 0 10px 0;} .left-column.site-fix {position: initial !important;}",
4335+
"style": "#comments, #postcomments, #respond, #footer {display: none !important;} .article-intro h1:not(:nth-of-type(1)) {margin: 30px 0 10px 0;} .middle-column {min-height: 1000px;}",
43224336
"history": true,
43234337
"pager": {
43244338
"type": 3,

0 commit comments

Comments
 (0)