Difference between revisions of "MediaWiki:Gadget-deletion.js"

From Moegirlpedia
Jump to: navigation, search
m (// Edit Via InPageEdit)
m (// Edit Via InPageEdit)
Line 1: Line 1:
mw.loader.load('https://zh.moegirl.org.cn/index.php?title=MediaWiki:Gadget-deletion.js&action=raw&ctype=text/javascript');
+
if (mw.config.get("wgNamespaceNumber") === 14 && mw.config.get("wgUserGroups").includes("sysop")) {
 +
    mw.loader.load(mw.config.get("wgServer").replace("en.moegirl", "zh.moegirl") + mw.config.get("wgScriptPath") + "/index.php?title=MediaWiki:Gadget-deletion.js/core.js&action=raw&ctype=text/javascript");
 +
}

Revision as of 14:10, 27 March 2022

if (mw.config.get("wgNamespaceNumber") === 14 && mw.config.get("wgUserGroups").includes("sysop")) {
    mw.loader.load(mw.config.get("wgServer").replace("en.moegirl", "zh.moegirl") + mw.config.get("wgScriptPath") + "/index.php?title=MediaWiki:Gadget-deletion.js/core.js&action=raw&ctype=text/javascript");
}