Skip to content

Commit 2af2432

Browse files
committed
feat: ✨ 按钮添加悬停提示, 脚本描述完善
1 parent d1a2083 commit 2af2432

File tree

10 files changed

+28
-21
lines changed

10 files changed

+28
-21
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
> [!WARNING]
88
> 使用 Tampermonkey 管理脚本且浏览器为 Edge 时,需将打开浏览器插件的 开发人员模式,否则脚本可能无法正常运行。
99
10-
| 名称 | 功能 | 安装 |
11-
| ------------------------------------------------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
12-
| [GitHub Dashboard Auto More](./apps/github/dashboard-auto-more/README.md) | GitHub 仪表盘页面自动加载更多 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/558225) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/4818) |
13-
| [GitHub Commit Sort](./apps/github/commit-sort/README.md) | GitHub 仓库文件按提交时间排序 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/522083-github-commit-sort) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/2576) |
14-
| [Bilibili Dynamic Block](./apps/bilibili/dynamic-block/README.md) | Bilibili 动态卡片拦截 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/522087-bilibili-dynamic-block) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/2577) |
15-
| [Common Right Click Tab](./apps/common/right-click-tab/README.md) | 右键超链接快速打开新标签页 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/528494-common-right-click-tab) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/2869) |
16-
| [Common Right Click Copy](./apps/common/right-click-copy/README.md) | 右键快速复制/粘贴文本 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/532794) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/3186) |
17-
| [Common QR Code](./apps/common/qr-code/README.md) | 图片二维码识别/生成工具 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/538539) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/3559) |
10+
| 名称 | 功能 | 安装 |
11+
| ----------------------------------------------------------------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
12+
| [GitHub Dashboard Auto More](./apps/github/dashboard-auto-more/README.md) | GitHub 仪表盘页面自动加载更多 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/558225) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/4818) |
13+
| [Sort Github Commits By Last Edited](./apps/github/sort-commits-by-last-edited/README.md) | GitHub 仓库文件按提交时间排序 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/522083-sort-github-commits-by-last-edited) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/2576) |
14+
| [Bilibili Dynamic Block](./apps/bilibili/dynamic-block/README.md) | Bilibili 动态卡片拦截 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/522087-bilibili-dynamic-block) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/2577) |
15+
| [Common Right Click Tab](./apps/common/right-click-tab/README.md) | 右键超链接快速打开新标签页 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/528494-common-right-click-tab) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/2869) |
16+
| [Common Right Click Copy](./apps/common/right-click-copy/README.md) | 右键快速复制/粘贴文本 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/532794) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/3186) |
17+
| [Common QR Code](./apps/common/qr-code/README.md) | 图片二维码识别/生成工具 | [🐒Greasy Fork](https://greasyfork.org/zh-CN/scripts/538539) \| [🐱Script Cat](https://scriptcat.org/zh-CN/script-show-page/3559) |
1818

1919
## 📦 封装工具
2020

apps/github/commit-sort/CHANGELOG.md renamed to apps/github/sort-commits-by-last-edited/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# github-commit-sort
1+
# sort-github-commits-by-last-edited
2+
3+
## 1.2.0
4+
5+
### Minor Changes
6+
7+
- 按钮添加悬停提示, 脚本描述完善
28

39
## 1.1.3
410

apps/github/commit-sort/README.md renamed to apps/github/sort-commits-by-last-edited/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# GitHub 仓库文件按提交时间排序(GitHub Commit Sort
1+
# GitHub 仓库文件按提交时间排序(Sort Github Commits By Last Edited
22

33
**GitHub 仓库无法快速查看最新的变更文件?试试这个 GitHub 仓库文件按提交时间排序的用户脚本吧!**
44

5-
<a href="https://github.com/xiaohuohumax/userscripts/tree/main/apps/github/commit-sort">
5+
<a href="https://github.com/xiaohuohumax/userscripts/tree/main/apps/github/sort-commits-by-last-edited">
66
<img src="https://img.shields.io/badge/GITHUB-项目地址-brightgreen?style=for-the-badge&logo=github" alt="项目地址" />
77
</a>
88
<a href="https://github.com/xiaohuohumax/userscripts/blob/main/LICENSE">
99
<img src="https://img.shields.io/badge/MIT-开源协议-orange?style=for-the-badge&logo=github" alt="开源协议" />
1010
</a>
11-
<a href="https://github.com/xiaohuohumax/userscripts/blob/main/apps/github/commit-sort/CHANGELOG.md">
11+
<a href="https://github.com/xiaohuohumax/userscripts/blob/main/apps/github/sort-commits-by-last-edited/CHANGELOG.md">
1212
<img src="https://img.shields.io/badge/CHANGELOG-更新日志-blue?style=for-the-badge&logo=github" alt="更新日志" />
1313
</a>
1414
<a href="https://github.com/xiaohuohumax/userscripts/issues">
@@ -17,7 +17,7 @@
1717

1818
## 📖 使用方式
1919

20-
![](https://raw.githubusercontent.com/xiaohuohumax/userscripts/main/apps/github/commit-sort/images/sort.gif)
20+
![](https://raw.githubusercontent.com/xiaohuohumax/userscripts/main/apps/github/sort-commits-by-last-edited/images/sort.gif)
2121

2222
## 🚨 免责声明
2323

File renamed without changes.

apps/github/commit-sort/package.json renamed to apps/github/sort-commits-by-last-edited/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "github-commit-sort",
2+
"name": "sort-github-commits-by-last-edited",
33
"type": "module",
4-
"version": "1.1.3",
4+
"version": "1.2.0",
55
"private": true,
6-
"description": "GitHub 仓库文件按提交时间排序(GitHub Commit Sort)-- GitHub 仓库无法快速查看最新的变更文件?试试这个 GitHub 仓库文件按提交时间排序的用户脚本吧!",
6+
"description": "GitHub 仓库文件按提交时间排序(Sort Github Commits By Last Edited)-- GitHub 仓库无法快速查看最新的变更文件?试试这个 GitHub 仓库文件按提交时间排序的用户脚本吧!",
77
"author": {
88
"name": "xiaohuohumax",
99
"url": "https://github.com/xiaohuohumax"

apps/github/commit-sort/src/index.ts renamed to apps/github/sort-commits-by-last-edited/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ function main(observer: MutationObserver) {
108108
if (!sortButton) {
109109
sortButton = document.createElement('button')
110110
sortButton.textContent = store.sortIcon
111+
sortButton.title = 'Sort commits by last edited'
111112
sortButton.classList.add('Button', 'Button--iconOnly', 'Button--secondary')
112113
sortButton.id = SORT_BUTTON_ID
113114
sortButton.style.width = 'var(--control-xsmall-size)'
File renamed without changes.
File renamed without changes.

apps/github/commit-sort/vite.config.ts renamed to apps/github/sort-commits-by-last-edited/vite.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ export default defineConfig({
1111
monkey({
1212
entry: 'src/index.ts',
1313
userscript: {
14-
name: 'GitHub 仓库文件按提交时间排序(GitHub Commit Sort)',
14+
name: 'GitHub 仓库文件按提交时间排序(Sort Github Commits By Last Edited)',
1515
description: 'GitHub 仓库无法快速查看最新的变更文件?试试这个 GitHub 仓库文件按提交时间排序的用户脚本吧!',
1616
icon: 'https://github.githubassets.com/favicons/favicon-dark.png',
17-
namespace: 'xiaohuohumax/userscripts/github-commit-sort',
17+
namespace: 'xiaohuohumax/userscripts/sort-github-commits-by-last-edited',
1818
license: 'MIT',
19-
updateURL: 'https://raw.githubusercontent.com/xiaohuohumax/userscripts/main/dist/github-commit-sort.user.js',
20-
downloadURL: 'https://raw.githubusercontent.com/xiaohuohumax/userscripts/main/dist/github-commit-sort.user.js',
19+
updateURL: 'https://raw.githubusercontent.com/xiaohuohumax/userscripts/main/dist/sort-github-commits-by-last-edited.user.js',
20+
downloadURL: 'https://raw.githubusercontent.com/xiaohuohumax/userscripts/main/dist/sort-github-commits-by-last-edited.user.js',
2121
noframes: true,
2222
match: [
2323
'https://github.com/*',

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)