Difference between revisions of "MediaWiki:Gadget-deletion.js"
m (// Edit Via InPageEdit) |
m (// Edit Via InPageEdit) |
||
Line 1: | Line 1: | ||
− | mw.loader.load( | + | 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"); }