“MediaWiki:Common.js”的版本间的差异
(// Edit via Wikiplus) |
小 (// Edit Via InPageEdit) |
||
第3行: | 第3行: | ||
$(function() { | $(function() { | ||
if (["ViewAvatar", "UploadAvatar", "Listfiles", "ListDuplicatedFiles", "Unusedimages", "Uncategorizedimages", "MediaStatistics", "TimedMediaHandler"].includes(mw.config.get("wgCanonicalSpecialPageName"))) { | if (["ViewAvatar", "UploadAvatar", "Listfiles", "ListDuplicatedFiles", "Unusedimages", "Uncategorizedimages", "MediaStatistics", "TimedMediaHandler"].includes(mw.config.get("wgCanonicalSpecialPageName"))) { | ||
− | location.replace(location.href.replace( | + | location.replace(location.href.replace("library.moegirl", "commons.moegirl")); |
} | } | ||
}) | }) |
2022年6月5日 (日) 14:30的版本
/* 共享站相关 */ "use strict"; $(function() { if (["ViewAvatar", "UploadAvatar", "Listfiles", "ListDuplicatedFiles", "Unusedimages", "Uncategorizedimages", "MediaStatistics", "TimedMediaHandler"].includes(mw.config.get("wgCanonicalSpecialPageName"))) { location.replace(location.href.replace("library.moegirl", "commons.moegirl")); } })