Skip to content

Commit

Permalink
同步main.user.js遗漏内容至main(greasyfork).user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maboloshi committed Jun 8, 2024
1 parent 8cfcfb6 commit 8a4c77b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main(greasyfork).user.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// @grant GM_notification
// @connect www.iflyrec.com
// @supportURL https://github.com/maboloshi/github-chinese/issues
Expand Down Expand Up @@ -214,10 +215,10 @@
page = t ? 'repository/' + t[1] : 'repository';
} else if (isOrganization) { // 组织页
t = pathname.match(I18N.conf.rePagePathOrg);
page = t ? 'orgs/' + t[1] : 'orgs';
page = t ? 'orgs/' + (t[1] || t.slice(-1)[0]) : 'orgs';
} else {
t = pathname.match(I18N.conf.rePagePath);
page = t ? t[1] : false; // 取页面 key
page = t ? (t[1] || t.slice(-1)[0]) : false; // 取页面 key
}

if (!page || !I18N[lang][page]) {
Expand Down

0 comments on commit 8a4c77b

Please sign in to comment.