Skip to content

Commit

Permalink
Abstracted app.urls.review.greasyFork
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Jan 12, 2025
1 parent 0a96351 commit 9b0a421
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions github/github-widescreen/github-widescreen.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// @description:zh-TW 自動隱藏 GitHub 上引人注目的側面板
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2025.1.11.2
// @version 2025.1.11.3
// @license MIT
// @icon https://github.githubassets.com/favicons/favicon.png
// @match *://github.com/*
Expand All @@ -36,7 +36,10 @@
name: 'GitHub Widescreen',
urls: {
gitHub: 'https://github.com/adamlui/github-widescreen',
greasyFork: 'https://greasyfork.org/scripts/473439-github-widescreen'
greasyFork: 'https://greasyfork.org/scripts/473439-github-widescreen',
review: {
greasyFork: 'https://greasyfork.org/scripts/462422-chatgpt-auto-refresh/feedback#post-discussion'
}
}
}
app.urls.update = app.urls.greasyFork.replace('https://', 'https://update.')
Expand All @@ -58,8 +61,7 @@
+ app.urls.gitHub + '</a></span>',
[ // buttons
function checkForUpdates() { updateCheck() },
function leaveAReview() { safeWindowOpen(
app.urls.greasyFork + '/feedback#post-discussion') }
function leaveAReview() { safeWindowOpen(app.urls.review.greasyFork) }
])

// Re-format buttons to include emojis + re-case + hide 'Dismiss'
Expand Down

0 comments on commit 9b0a421

Please sign in to comment.