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" }