Skip to content

Commit ef6e9ea

Browse files
committed
fix: 🐛 修复GitHub仓库文件按提交时间排序脚本图标位置异常
1 parent 271f7d0 commit ef6e9ea

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

apps/github/commit-sort/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# github-commit-sort
22

3+
## 1.1.2
4+
5+
### Patch Changes
6+
7+
- 修复排序图标位置异常
8+
39
## 1.1.1
410

511
### Patch Changes

apps/github/commit-sort/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "github-commit-sort",
33
"type": "module",
4-
"version": "1.1.1",
4+
"version": "1.1.2",
55
"private": true,
66
"description": "GitHub 仓库文件按提交时间排序📅(GitHub Commit Sort)-- GitHub 仓库无法快速查看最新的变更文件?试试这个 GitHub 仓库文件按提交时间排序的用户脚本吧!",
77
"author": {

apps/github/commit-sort/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function queryTable(): TypeOrEmpty<HTMLTableElement> {
2222
function querySortButtonParent(): { sortButtonParent: TypeOrEmpty<HTMLDivElement>, isMainPage: boolean } {
2323
const table = queryTable()
2424
const mainTable = table?.querySelector<HTMLDivElement>(
25-
'body tr[class^="Box-sc-"] > td > div > div:last-child',
25+
'body tr[class^="DirectoryContent-module"] > td > div > div:last-child',
2626
)
2727
if (mainTable) {
2828
return { sortButtonParent: mainTable, isMainPage: true }

0 commit comments

Comments
 (0)