Skip to content

Commit

Permalink
feat: 更新权标小工具 from QiuWen
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoruaFox committed Mar 4, 2024
1 parent faacbeb commit 04b1ee5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/MarkRights/MarkRights.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
*/
import {markUserRights} from './modules/core';

$(function markRights(): void {
mw.hook('wikipage.content').add(($content): void => {
if ($content.attr('id') === 'mw-content-text' || $content.hasClass('mw-changeslist')) {
void markUserRights($content);
}
});
mw.hook('wikipage.content').add(function markRights($content): void {
if ($content.attr('id') === 'mw-content-text' || $content.hasClass('mw-changeslist')) {
void markUserRights($content);
}
});
2 changes: 1 addition & 1 deletion src/MarkRights/modules/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {localize} from 'ext.gadget.i18n';
const getI18nMessages = () => {
return {
responsibleoperator: localize({
en: 'Webmaster',
en: 'ResponsibleOperator',
'zh-hans': '责任运营',
'zh-hant': '責任運營',
}),
Expand Down

0 comments on commit 04b1ee5

Please sign in to comment.