“MediaWiki:Common.js”的版本间的差异
(创建页面,内容为“→共享站相关: "use strict"; $(function() { if (["ViewAvatar", "Listfiles", "ListDuplicatedFiles", "Unusedimages", "Uncategorizedimages", "MediaStatistics…”) |
小 |
||
第5行: | 第5行: | ||
location.hostname = location.hostname.replace("library.moegirl", "commons.moegirl"); | location.hostname = location.hostname.replace("library.moegirl", "commons.moegirl"); | ||
} | } | ||
− | } | + | }) |
2022年6月3日 (五) 23:28的版本
/* 共享站相关 */ "use strict"; $(function() { if (["ViewAvatar", "Listfiles", "ListDuplicatedFiles", "Unusedimages", "Uncategorizedimages", "MediaStatistics", "TimedMediaHandler"].includes(mw.config.get("wgCanonicalSpecialPageName"))) { location.hostname = location.hostname.replace("library.moegirl", "commons.moegirl"); } })