Skip to content

Commit 1d9ad85

Browse files
committed
新增 [Libre Search]、[4get.ca] 支持; 更新 [Startpage 搜索] 规则
1 parent b781f01 commit 1d9ad85

1 file changed

Lines changed: 32 additions & 13 deletions

File tree

other/Autopage/rules.json

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,21 @@
182182
"url": "/\\/search/",
183183
"history": false,
184184
"pager": {
185-
"nextL": "js; return fun.getNextF('//div[contains(@class,\"pagination\")]/form[./button[@class=\"pagination__next-prev-button next\"]]')",
186-
"pageE": "section.w-gl--desktop>div",
185+
"nextL": "js; return fun.getNextF('//div[contains(@class,\"pagination\")]/form[last()]')",
186+
"pageE": ".result,head>style[data-emotion]",
187187
"replaceE": ".pagination"
188188
}
189189
},
190+
"Libre Search": {
191+
"host": "so.ddns-ip.net",
192+
"url": "/^\\/search/",
193+
"history": false,
194+
"pager": {
195+
"nextL": "js; return fun.getNextF('.next_page')",
196+
"pageE": "#urls>[class^=template_group_], #urls>.result",
197+
"replaceE": "#pagination"
198+
}
199+
},
190200
"Yandex 搜索": {
191201
"host": ["yandex.com","yandex.ru","yandex.ua","yandex.by","yandex.kz","yandex.uz","yandex.com.tr"],
192202
"url": "/^\\/search\\//",
@@ -288,6 +298,15 @@
288298
"replaceE": ".pagination"
289299
}
290300
},
301+
"4get.ca 搜索": {
302+
"host": "4get.ca",
303+
"url": "/^\\/(web|images|videos|news|music)/",
304+
"blank": 3,
305+
"pager": {
306+
"nextL": ".nextpage",
307+
"pageE": ".text-result, .image-wrapper"
308+
}
309+
},
291310
"百度贴吧 - 搜索页": {
292311
"host": "tieba.baidu.com",
293312
"url": "/^\\/f\\/search\\/res/",
@@ -342,17 +361,17 @@
342361
"replaceE": "#paginator"
343362
}
344363
},
345-
"豆瓣 - top250/分集短评/剧评影评/在看/想看/看过/作品/图片": {
346-
"host": ["movie.douban.com","music.douban.com","book.douban.com"],
347-
"url": "return (fun.lp() == '/top250' || fun.indexOF(/^\\/subject\\/\\d+\\/(episode|tv_discuss|reviews|photos)/) || fun.indexOF(/^\\/people\\/.+\\/(do|wish|collect)/) || fun.indexOF(/^\\/celebrity\\/\\d+\\/(movies|photos)/))",
348-
"blank": 5,
349-
"pager": {
350-
"nextL": "link[rel='next']",
351-
"pageE": ".grid_view,.article>.indent>p.ul,.article>.indent>table,#comments,.review-list,.interest-list,.grid-view,.grid_view>ul>li,.poster-col3>li",
352-
"replaceE": ".paginator",
353-
"scrollD": 2500
354-
}
355-
},
364+
"豆瓣 - top250/分集短评/剧评影评/在看/想看/看过/作品/图片": {
365+
"host": ["movie.douban.com","music.douban.com","book.douban.com"],
366+
"url": "return (fun.lp() == '/top250' || fun.indexOF(/^\\/subject\\/\\d+\\/(episode|tv_discuss|reviews|photos)/) || fun.indexOF(/^\\/people\\/.+\\/(do|wish|collect)/) || fun.indexOF(/^\\/celebrity\\/\\d+\\/(movies|photos)/))",
367+
"blank": 5,
368+
"pager": {
369+
"nextL": "link[rel='next']",
370+
"pageE": ".grid_view,.article>.indent>p.ul,.article>.indent>table,#comments,.review-list,.interest-list,.grid-view,.grid_view>ul>li,.poster-col3>li",
371+
"replaceE": ".paginator",
372+
"scrollD": 2500
373+
}
374+
},
356375
"豆瓣 - 广播/日记/书评/影评评论": {
357376
"host": ["www.douban.com","book.douban.com","movie.douban.com"],
358377
"url": "return ((fun.indexOF(/^\\/people\\/.+\\/status/) && (!fun.indexOF('tab=','s') || fun.indexOF('tab=comment','s'))) || (fun.indexOF(/^\\/note\\/\\d+\\//) && !fun.indexOF('type=','s')) || fun.indexOF(/^\\/review\\/\\d+\\//))",

0 commit comments

Comments
 (0)