|
1 | 1 | // ==UserScript== |
2 | | -// @name GitHub 仓库文件按提交时间排序(GitHub Commit Sort) |
3 | | -// @namespace xiaohuohumax/userscripts/github-commit-sort |
4 | | -// @version 1.1.3 |
| 2 | +// @name GitHub 仓库文件按提交时间排序(Sort Github Commits By Last Edited) |
| 3 | +// @namespace xiaohuohumax/userscripts/sort-github-commits-by-last-edited |
| 4 | +// @version 1.2.0 |
5 | 5 | // @author xiaohuohumax |
6 | 6 | // @description GitHub 仓库无法快速查看最新的变更文件?试试这个 GitHub 仓库文件按提交时间排序的用户脚本吧! |
7 | 7 | // @license MIT |
8 | 8 | // @icon https://github.githubassets.com/favicons/favicon-dark.png |
9 | 9 | // @source https://github.com/xiaohuohumax/userscripts.git |
10 | | -// @downloadURL https://raw.githubusercontent.com/xiaohuohumax/userscripts/main/dist/github-commit-sort.user.js |
11 | | -// @updateURL https://raw.githubusercontent.com/xiaohuohumax/userscripts/main/dist/github-commit-sort.user.js |
| 10 | +// @downloadURL https://raw.githubusercontent.com/xiaohuohumax/userscripts/main/dist/sort-github-commits-by-last-edited.user.js |
| 11 | +// @updateURL https://raw.githubusercontent.com/xiaohuohumax/userscripts/main/dist/sort-github-commits-by-last-edited.user.js |
12 | 12 | // @match https://github.com/* |
13 | 13 | // @grant GM_addValueChangeListener |
14 | 14 | // @grant GM_getValue |
|
45 | 45 | debounced.flush = (...args) => func(...args); |
46 | 46 | return debounced; |
47 | 47 | }; |
48 | | - const ID = "github-commit-sort"; |
49 | | - const VERSION = "1.1.3"; |
| 48 | + const ID = "sort-github-commits-by-last-edited"; |
| 49 | + const VERSION = "1.2.0"; |
50 | 50 | var _GM_addValueChangeListener = /* @__PURE__ */ (() => typeof GM_addValueChangeListener != "undefined" ? GM_addValueChangeListener : void 0)(); |
51 | 51 | var _GM_getValue = /* @__PURE__ */ (() => typeof GM_getValue != "undefined" ? GM_getValue : void 0)(); |
52 | 52 | var _GM_setValue = /* @__PURE__ */ (() => typeof GM_setValue != "undefined" ? GM_setValue : void 0)(); |
|
159 | 159 | if (!sortButton) { |
160 | 160 | sortButton = document.createElement("button"); |
161 | 161 | sortButton.textContent = store.sortIcon; |
| 162 | + sortButton.title = "Sort commits by last edited"; |
162 | 163 | sortButton.classList.add("Button", "Button--iconOnly", "Button--secondary"); |
163 | 164 | sortButton.id = SORT_BUTTON_ID; |
164 | 165 | sortButton.style.width = "var(--control-xsmall-size)"; |
|
0 commit comments