From d57e274066ff188a3b4095ace1b4fde95a75a1f0 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 29 Apr 2023 09:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[Github=20-=20Gist=20-=20d?= =?UTF-8?q?iscover]=20=E6=94=AF=E6=8C=81;=20=E4=BC=98=E5=8C=96=20[Github]?= =?UTF-8?q?=20=E9=83=A8=E5=88=86=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index f41f886..a5d06c1 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -4696,7 +4696,7 @@ "host": "github.com", "url": "/(tab=(stars|repositories)|\\/commits|\\/network\\/dependents|^\\/notifications\\/subscriptions(\\?|$))/", "pager": { - "nextL": "//*[self::div or self::nav][@class='paginate-container']/div/*[last()]", + "nextL": ".paginate-container>div>:last-child", "pageE": "#user-starred-repos div[class^='col-']:first-of-type>div:not(.position-relative):not(.paginate-container), #user-repositories-list>ul>li, .js-navigation-container>div, .Box>[data-test-id='dg-repo-pkg-dependent'], #threads-unsubscribe-form>ul>li", "replaceE": ".paginate-container", "scrollD": 2500 @@ -4714,9 +4714,9 @@ }, "Github - Tags": { "host": "github.com", - "url": "return (fun.indexOF(/\\/tags$/))", + "url": "/\\/tags$/", "pager": { - "nextL": "//div[@class='pagination']/*[last()]", + "nextL": ".pagination>:last-child", "pageE": ".Box-body>div.Box-row", "replaceE": ".pagination", "scrollD": 2500 @@ -4741,11 +4741,12 @@ "replaceE": "nav[class^='Pagination__PaginationContainer'], .pagination" } }, - "Github - Gist - Search": { + "Github - Gist - Search/discover": { "host": "gist.github.com", - "url": "return (fun.lp() == '/search' && location.search != '')", + "url": "return ((fun.lp() == '/search' && location.search != '') || fun.lp() == '/discover')", + "blank": 4, "pager": { - "nextL": "a.next_page", + "nextL": "a.next_page,.pagination>:last-child:not([class])", "pageE": ".gist-snippet", "replaceE": ".pagination" }