|
13 | 13 | // @description:zh-TW 將明星曆史圖表添加到 GitHub 存儲庫的側邊欄 |
14 | 14 | // @author Adam Lui |
15 | 15 | // @namespace https://github.com/adamlui |
16 | | -// @version 2026.7.13 |
| 16 | +// @version 2026.7.13.1 |
17 | 17 | // @license MIT |
18 | 18 | // @icon data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2248%22%20height=%2248%22%20viewBox=%220%200%2048%2048%22%3E%3Cstyle%3E:root%7B--fill:%23000%7D@media%20(prefers-color-scheme:dark)%7B:root%7B--fill:%23fff%7D%7D%3C/style%3E%3Cpath%20fill=%22var(--fill)%22%20d=%22M24%201.9a21.6%2021.6%200%200%200-6.8%2042.2c1%20.2%201.8-.9%201.8-1.8v-2.9c-6%201.3-7.9-2.9-7.9-2.9a6.5%206.5%200%200%200-2.2-3.2c-2-1.4.1-1.3.1-1.3a4.3%204.3%200%200%201%203.3%202c1.7%202.9%205.5%202.6%206.7%202.1a5.4%205.4%200%200%201%20.5-2.9C12.7%2032%209%2028%209%2022.6a10.7%2010.7%200%200%201%202.9-7.6%206.2%206.2%200%200%201%20.3-6.4%208.9%208.9%200%200%201%206.4%202.9%2015.1%2015.1%200%200%201%205.4-.8%2017.1%2017.1%200%200%201%205.4.7%209%209%200%200%201%206.4-2.8%206.5%206.5%200%200%201%20.4%206.4%2010.7%2010.7%200%200%201%202.8%207.6c0%205.4-3.7%209.4-10.5%2010.6a5.4%205.4%200%200%201%20.5%202.9v6.2a1.8%201.8%200%200%200%201.9%201.8A21.7%2021.7%200%200%200%2024%201.9Z%22/%3E%3C/svg%3E |
19 | 19 | // @icon64 data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2264%22%20height=%2264%22%20viewBox=%220%200%2048%2048%22%3E%3Cstyle%3E:root%7B--fill:%23000%7D@media%20(prefers-color-scheme:dark)%7B:root%7B--fill:%23fff%7D%7D%3C/style%3E%3Cpath%20fill=%22var(--fill)%22%20d=%22M24%201.9a21.6%2021.6%200%200%200-6.8%2042.2c1%20.2%201.8-.9%201.8-1.8v-2.9c-6%201.3-7.9-2.9-7.9-2.9a6.5%206.5%200%200%200-2.2-3.2c-2-1.4.1-1.3.1-1.3a4.3%204.3%200%200%201%203.3%202c1.7%202.9%205.5%202.6%206.7%202.1a5.4%205.4%200%200%201%20.5-2.9C12.7%2032%209%2028%209%2022.6a10.7%2010.7%200%200%201%202.9-7.6%206.2%206.2%200%200%201%20.3-6.4%208.9%208.9%200%200%201%206.4%202.9%2015.1%2015.1%200%200%201%205.4-.8%2017.1%2017.1%200%200%201%205.4.7%209%209%200%200%201%206.4-2.8%206.5%206.5%200%200%201%20.4%206.4%2010.7%2010.7%200%200%201%202.8%207.6c0%205.4-3.7%209.4-10.5%2010.6a5.4%205.4%200%200%201%20.5%202.9v6.2a1.8%201.8%200%200%200%201.9%201.8A21.7%2021.7%200%200%200%2024%201.9Z%22/%3E%3C/svg%3E |
|
58 | 58 |
|
59 | 59 | // Init APP info |
60 | 60 | const app = { |
61 | | - latestResourceCommitHash: '27cf60e', |
| 61 | + latestResourceCommitHash: '944a710', |
62 | 62 | urls: { update: 'https://scriptcat.org/scripts/code/7016/github-star-history.user.js' } |
63 | 63 | } |
64 | 64 | app.urls.resourceHost = `https://cdn.jsdelivr.net/gh/adamlui/github-star-history@${app.latestResourceCommitHash}` |
|
451 | 451 | ghAlert('🚀 Update available!', // title |
452 | 452 | `A newer version of ${app.name} v${app.latestVer} is available! ` |
453 | 453 | + '<a target="_blank" rel="noopener" style="font-size: 0.9rem" href="' |
454 | | - + `${app.urls.gitHub}/commits/main/greasemonkey/${app.slug}.user.js` |
| 454 | + + `${app.urls.github}/commits/main/greasemonkey/${app.slug}.user.js` |
455 | 455 | + '">View changes</a>', |
456 | 456 | function update() { // button |
457 | 457 | GM_openInTab(app.urls.update.replace('meta.js', 'user.js') + '?t=' + Date.now(), |
|
958 | 958 | app.name, // title |
959 | 959 | `🏷️ Version: <span style="${pStyle} color: ${ env.ui.scheme == 'dark' ? '#00cd00' : 'green' }">${ |
960 | 960 | GM_info.script.version}</span>\n` |
961 | | - + `📜 Source code:\n<span style="${pBrStyle}"><a href="${app.urls.gitHub}" target="_blank" rel="nopener">` |
962 | | - + app.urls.gitHub + '</a></span>', |
| 961 | + + `📜 Source code:\n<span style="${pBrStyle}"><a href="${app.urls.github}" target="_blank" rel="nopener">` |
| 962 | + + app.urls.github + '</a></span>', |
963 | 963 | [ // buttons |
964 | 964 | function checkForUpdates() { updateCheck() }, |
965 | 965 | function getSupport() { safeWinOpen(app.urls.support) }, |
|
0 commit comments