User:地球发动机/monobook.js
维基百科,自由的百科全书
注意:在保存以后,您必须清除浏览器的缓存才能看到所作出的改变:Mozilla: 点击刷新(或ctrl-r), IE / Opera: ctrl-f5, Safari: cmd-r, Konqueror ctrl-r。
//<pre> //author : fdcn 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'); //加入fixSslUrl addjs(getPrePath()+'w/index.php?title=User:fdcn64/monobook.js&action=raw&ctype=text/javascript&dontcountme=s'); //</pre>