User:Chaplin/monobook.js
外观
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
//
//增加“強制刷新”按鈕
//importScript('Wikipedia:維基百科工具/強迫更新/purge.js');
//取消搜索引擎
//JSConfig.SpecialSearchEnhancedDisabled=true;
customSignature='~~\~';
importScript('User:Fdcn/vfd.js');
/*
recentrevisionsbox
importScript('http://nl.wikipedia.org/w/index.php?title=Gebruiker:JePe/recentrevisionsbox.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');
*/
//wikEd
importScript('http://en.wikipedia.org/w/index.php?title=User:Shibo77/wikEd_international_zh.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');
importScript('http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');
//加入popups
//importScript('MediaWiki:popups.js');
importScript('http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');
popupAdminLinks=true;
//定制非中文重定向
addOnloadHook(function (){
var menu=mwEdittool.dropdownMenus["langTags"];
if(!menu){return;}
menu.add('非中文重定向','nochineseRedirect','{\{非中文重定向}\}','','');
});
//定制左侧导航
//importScript('User:Fdcn/customNav.js');
var customNav=function(navList){
//相关定制;
//navList.remove('n-mainpage');//移除首页
navList.remove('n-portal');//移除社区主页
navList.remove('n-currentevents');//移除新闻动态
//navList.remove('n-recentchanges');//移除最近更改
navList.remove('n-Featured_content');//移除特色内容
navList.remove('n-randompage');//移除随机页面
//navList.remove('n-commonsupload');//移除上传共享
//navList.remove('n-help');//移除帮助
//navList.remove('n-villagepump');//移除互助客栈
navList.remove('n-Information_desk');//移除询问处
//navList.remove('n-conversion');//移除繁简转换
//navList.remove('n-allpages');//移除所有页面
navList.remove('n-contact');//移除联系我们
navList.remove('n-sitesupport');//移除捐助
}
//加入fixSslUrl
//importScript('User:fdcn64/monobook.js');
//JSConfig.isRightEditSectionLink=true;
/*
== 章節編輯連結置左 ==
*/
function moveEditsection() {
if (typeof oldEditsectionLinks == 'undefined' || oldEditsectionLinks == false) {
var spans = document.getElementsByTagName("span");
for(var i = 0; i < spans.length; i++) {
if(spans[i].className == "editsection") {
spans[i].style.fontSize = "x-small";
spans[i].style.fontWeight = "normal";
spans[i].style.cssFloat = "none";
spans[i].style.marginLeft = "0px";
spans[i].parentNode.appendChild(document.createTextNode(" "));
spans[i].parentNode.appendChild(spans[i]);
}
}
}
}
addOnloadHook(moveEditsection);