mirror of
https://github.com/XIU2/UserScript.git
synced 2026-09-22 15:06:57 +00:00
新增 [Github - Gist - discover] 支持; 优化 [Github] 部分规则
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user