User:Terasail/global.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
if (mw.config.get("wgServer") != "//en.wikipedia.org") { //Don't run global things on en.wiki
//Load en.wiki scripts for all other projects
//Make new vector header & sidebar full screen width
document.getElementsByClassName('mw-page-container')[0].style = 'max-width:' + screen.width + 'px';
document.getElementsByClassName('mw-workspace-container')[0].style = 'max-width:' + screen.width + 'px';
if (mw.config.get('wgCanonicalNamespace') == "Special") {
document.getElementById("mw-head").children[0].style = "margin-left:11.5em";
}
mw.loader.load("https://en.wikipedia.org/w/index.php?action=raw&title=User:Terasail/userInfo.js&ctype=text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?action=raw&title=User:Terasail/vector.js&ctype=text/javascript");
}