User:Kester0000/vector.js

//importScript("User:PleaseStand/hide-vector-sidebar.js"); /* hide-vector-sidebar.js: Adds a button to toggle visibility of the Vector sidebar. Written by PleaseStand. Public domain; all copyright claims waived as described in http://en.wikipedia.org/wiki/Template:PD-self */ /*global document, window, addOnloadHook, addPortletLink, skin*/ var sidebarSwitch; function sidebarHide { document.getElementById("mw-panel").style.visibility = "hidden"; document.getElementById("mw-head-base").style.marginLeft = "0"; document.getElementById("content").style.marginLeft = "0"; document.getElementById("left-navigation").style.left = "0"; document.getElementById("footer").style.marginLeft = "0"; if(typeof sidebarSwitch == "object") { sidebarSwitch.parentNode.removeChild(sidebarSwitch); }	sidebarSwitch = mw.util.addPortletLink("p-cactions", "javascript:sidebarShow", "Show sidebar", "ca-sidebar", "Show the navigation links", "a"); } function sidebarShow { document.getElementById("mw-panel").style.visibility = ""; document.getElementById("mw-head-base").style.marginLeft = ""; document.getElementById("content").style.marginLeft = ""; document.getElementById("left-navigation").style.left = ""; document.getElementById("footer").style.marginLeft = ""; if(typeof sidebarSwitch == "object") { sidebarSwitch.parentNode.removeChild(sidebarSwitch); }	sidebarSwitch = mw.util.addPortletLink("p-cactions", "javascript:sidebarHide", "Hide sidebar", "ca-sidebar", "Hide the navigation links", "a"); } // Only activate on Vector skin if(skin == "vector") { addOnloadHook(function {		// Change this if you want to show the sidebar by default		sidebarHide;	}); }

WebFontConfig = { google: { families: [ 'Droid+Serif:400,400italic,700,700italic:latin' ] } }; (function {    var wf = document.createElement('script');    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +     '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';    wf.type = 'text/javascript';    wf.async = 'true';    var s = document.getElementsByTagName('script')[0];    s.parentNode.insertBefore(wf, s);  });