“MediaWiki:Common.js”的版本间的差异

来自萌娘文库
跳转至: 导航搜索
(// Edit Via InPageEdit)
第2行: 第2行:
 
"use strict";
 
"use strict";
 
$(function() {
 
$(function() {
     if (["ViewAvatar", "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.hostname = location.hostname.replace("library.moegirl", "commons.moegirl");
 
         location.hostname = location.hostname.replace("library.moegirl", "commons.moegirl");
 
     }
 
     }
 
})
 
})

2022年6月3日 (五) 23:44的版本

/* 共享站相关 */
"use strict";
$(function() {
    if (["ViewAvatar", "UploadAvatar", "Listfiles", "ListDuplicatedFiles", "Unusedimages", "Uncategorizedimages", "MediaStatistics", "TimedMediaHandler"].includes(mw.config.get("wgCanonicalSpecialPageName"))) {
        location.hostname = location.hostname.replace("library.moegirl", "commons.moegirl");
    }
})