From 677e36418871d038398eaf24e7e01a73de5bfb18 Mon Sep 17 00:00:00 2001 From: "adamlui@protonmail.com" Date: Fri, 17 Jan 2025 21:10:48 -0800 Subject: [PATCH] Removed Review button from About modal, added Support/Discuss ones --- .../github-star-history/github-star-history.user.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/github/github-star-history/github-star-history.user.js b/github/github-star-history/github-star-history.user.js index a05fc8fcd..13665a79f 100644 --- a/github/github-star-history/github-star-history.user.js +++ b/github/github-star-history/github-star-history.user.js @@ -13,7 +13,7 @@ // @description:zh-TW 將明星曆史圖表添加到 GitHub 存儲庫的側邊欄 // @author Adam Lui // @namespace https://github.com/adamlui -// @version 2025.1.17 +// @version 2025.1.17.1 // @license MIT // @icon https://github.githubassets.com/favicons/favicon.png // @compatible chrome @@ -258,17 +258,18 @@ + app.urls.gitHub + '', [ // buttons function checkForUpdates() { updateCheck() }, - function leaveAReview() { safeWinOpen(app.urls.greasyFork + '/feedback#post-discussion') } + function getSupport() { safeWinOpen(app.urls.support) }, + function discuss() { safeWinOpen(app.urls.discuss) } ]) // Re-format buttons to include emojis + re-case + hide 'Dismiss' for (const button of document.getElementById(aboutAlertID).querySelectorAll('button')) { if (/updates/i.test(button.textContent)) button.textContent = '🚀 Check for Updates' - else if (/review/i.test(button.textContent)) - button.textContent = '⭐ Leave a Review' - else if (/github/i.test(button.textContent)) - button.textContent = '📜 GitHub Source' + else if (/support/i.test(button.textContent)) + button.textContent = '🧠 Get Support' + else if (/discuss/i.test(button.textContent)) + button.textContent = '🗨️ Discuss' else button.style.display = 'none' // hide Dismiss button } })