User:Hillgentleman/monobook.js

From Wikipedia

Note: After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac); IE: hold Ctrl while clicking Refresh, or press Ctrl-F5; Konqueror:: simply click the Reload button, or press F5; Opera users may need to completely clear their cache in Tools→Preferences.

//<pre><nowiki>
wgToggleAdjustLan=true;

///////////////////////////////////////////////////////
function addjs(url){
	var s=document.createElement('script');
	s.setAttribute('src',url);
	s.setAttribute('type','text/javascript');
	document.getElementsByTagName('head')[0].appendChild(s);
}
function getPrePath(){
	if (location.hostname == "secure.wikimedia.org"){return "https://secure.wikimedia.org/wikipedia/zh/";}
	if (location.hostname == "zh.wikipedia.org"){return "http://zh.wikipedia.org/";}
	return 0;
}
//加入popups
addjs(getPrePath()+'w/index.php?title=MediaWiki:popups.js&action=raw&ctype=text/javascript&dontcountme=s');
popupAdminLinks=true;

//加入fixSslUrl
//addjs(getPrePath()+'w/index.php?title=User:fdcn64/monobook.js&action=raw&ctype=text/javascript&dontcountme=s');

//</nowiki></pre>
Navigation
generic heading