打开主菜单

Ballance Wiki β

更改

MediaWiki:Common.js

添加532字节2018年7月24日 (二) 19:51
set icon
//临时修复!侧边栏的“打印页面”移动到“打印/导出”章节
$('div#p-electronPdfService-sidebar-portlet-heading div.body ul').append($('li#t-print'));
 
//change icon =======================================================
//change head
 
var cache1 = document.head.getElementsByTagName("link");
for (testCache in cache1) {
if (testCache.rel == "shortcut icon") {
testCache.src = "https://github.com/BearKidsTeam/ballance-wiki/blob/master/assets/favicon.ico";
break;
}
}
 
//change left icon
 
cache1 = document.getElementById("mw-wiki-logo");
cache1.style = "background-image: url(https://github.com/BearKidsTeam/ballance-wiki/blob/master/assets/favicon.png);";
1,136
个编辑