From a58ac52b559da669bf1a256af85d961b6cfd5b04 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 10 Apr 2022 18:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=AD=97=E5=AE=A2?= =?UTF-8?q?=E7=BD=91]=E3=80=81[GreasyFork=20-=20=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2]=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 9901678..b01e14c 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -1574,6 +1574,16 @@ "scrollD": 2000 } }, + "字客网": { + "host": "www.fontke.com", + "url": "return ((fun.indexOF('/list/') && fun.getCSS('.index-family') != null) || fun.indexOF('/search/'))", + "pager": { + "nextL": ".next>a", + "pageE": ".index-family ul:not(.page)>li:not(.head), script[src*='base.js'], .inform-list>ul>li", + "replaceE": ".page", + "scriptT": 2 + } + }, "3DM - 分类页": { "host": "www.3dmgame.com", "url": "if (fun.getCSS('.Llist_b>div.lis')) return true", @@ -4278,32 +4288,11 @@ }, "GreasyFork": { "host": "greasyfork.org", - "url": "return (fun.indexOF(/\\/scripts$/) || fun.indexOF('/scripts/by-site/'))", + "url": "return (fun.indexOF(/\\/(scripts|feedback)$/) || fun.indexOF(/\\/scripts\\/(by-site|libraries|code-search)/) || (fun.indexOF('/discussions') && !fun.indexOF(/\\/\\d+/)))", "blank": 3, "pager": { "nextL": "a.next_page", - "pageE": "ol#browse-script-list>li", - "replaceE": ".pagination" - } - }, - "GreasyFork - 反馈页": { - "host": "greasyfork.org", - "url": "return (fun.indexOF(/\\/feedback$/))", - "blank": 3, - "pager": { - "nextL": "a.next_page", - "pageE": ".script-discussion-list>div", - "replaceE": ".pagination", - "scrollD": 1800 - } - }, - "GreasyFork - 讨论页": { - "host": "greasyfork.org", - "url": "return (fun.indexOF('/discussions') && !fun.indexOF(/\\/\\d+/))", - "blank": 3, - "pager": { - "nextL": "a.next_page", - "pageE": ".discussion-list>div", + "pageE": "ol#browse-script-list>li, .script-discussion-list, .discussion-list>div", "replaceE": ".pagination" } },