Skip to content

Commit 9b0a421

Browse files
committed
Abstracted app.urls.review.greasyFork
1 parent 0a96351 commit 9b0a421

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

github/github-widescreen/github-widescreen.user.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// @description:zh-TW 自動隱藏 GitHub 上引人注目的側面板
1414
// @author Adam Lui
1515
// @namespace https://github.com/adamlui
16-
// @version 2025.1.11.2
16+
// @version 2025.1.11.3
1717
// @license MIT
1818
// @icon https://github.githubassets.com/favicons/favicon.png
1919
// @match *://github.com/*
@@ -36,7 +36,10 @@
3636
name: 'GitHub Widescreen',
3737
urls: {
3838
gitHub: 'https://github.com/adamlui/github-widescreen',
39-
greasyFork: 'https://greasyfork.org/scripts/473439-github-widescreen'
39+
greasyFork: 'https://greasyfork.org/scripts/473439-github-widescreen',
40+
review: {
41+
greasyFork: 'https://greasyfork.org/scripts/462422-chatgpt-auto-refresh/feedback#post-discussion'
42+
}
4043
}
4144
}
4245
app.urls.update = app.urls.greasyFork.replace('https://', 'https://update.')
@@ -58,8 +61,7 @@
5861
+ app.urls.gitHub + '</a></span>',
5962
[ // buttons
6063
function checkForUpdates() { updateCheck() },
61-
function leaveAReview() { safeWindowOpen(
62-
app.urls.greasyFork + '/feedback#post-discussion') }
64+
function leaveAReview() { safeWindowOpen(app.urls.review.greasyFork) }
6365
])
6466

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

0 commit comments

Comments
 (0)