MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
Replaced /w/index.php calls that result in 301 redirects
(Initialize server toggle, removed legacy mobile stylesheets loader)
(Replaced /w/index.php calls that result in 301 redirects)
Line 31:
if (document.getElementsByClassName("server-toggle-parent").length > 0 || document.getElementsByClassName("server-toggle-jp-button").length > 0 || document.getElementsByClassName("tabber__tabs").length > 0) {
//console.log("Loading server switching js");
mw.loader.load ( '/wwiki/index.php?title=MediaWiki:ServerToggle.js&?action=raw&ctype=text/javascript' );
}
 
Line 49:
}
if (mw.config.get("wgPageName") === "Characters" || mw.config.get("wgPageName") === "Characters_StatChart") {
mw.loader.load( '/wwiki/index.php?title=MediaWiki:CharacterTable.js&?action=raw&ctype=text/javascript' );
}
if (mw.config.get("wgPageName") === "An_Unconcealed_Heart/Mitcher") {
mw.loader.load( '/wwiki/index.php?title=MediaWiki:Mitcher.js&?action=raw&ctype=text/javascript' );
}
if (mw.config.get("wgPageName") === "A_Game_Before_the_New_Year's_Feast_~_One-and-Done_Match_~/Junby") {
mw.loader.load( '/wwiki/index.php?title=MediaWiki:Junby.js&?action=raw&ctype=text/javascript' );
}
 
const title_split = mw.config.get('wgTitle').toLowerCase().split("/");
if (mw.config.get('wgNamespaceNumber') === 0 && title_split.length === 2 && title_split[1] === 'momotalk') {
mw.loader.load( '/wwiki/index.php?title=MediaWiki:MomotalkChoice.js&?action=raw&ctype=text/javascript' );
}
 
Line 68:
 
/* Character stat calc & affection table */
mw.loader.load( '/wwiki/index.php?title=MediaWiki:StatCalc.js&?action=raw&ctype=text/javascript' );
 
 
Line 174:
 
/* XP tables */
mw.loader.load( '/wwiki/index.php?title=MediaWiki:XPtable.js&?action=raw&ctype=text/javascript' );
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu