Widget:LoadMainCSS
刷
历
编
跳到导航
跳到搜索
<script>/* 加载Main.css 对于界面管理员,始终加载无缓存版本。这依赖于Main.js中的写入localStorage的权限 */ try { function getCookie(name) {
var value = '; ' + document.cookie; var parts = value.split('; ' + name + '='); if (parts.length === 2) return parts.pop().split(';').shift();
}
if(window._is_main_css_loaded){ console.log("Widget:LoadMainCSS: Skip, Main.css is loaded."); }else{ var head = document.getElementsByTagName('head')[0]; var main_css_link = document.createElement('link'); main_css_link.rel = 'stylesheet'; main_css_link.type = 'text/css'; main_css_link.href = 'https://wiki.biligame.com/wukong/MediaWiki:Main.css?action=raw&ctype=text/css'; if(localStorage.getItem('wukong-interface-admin')){ console.log("Widget:LoadMainCSS: 尝试加载无缓存版本的 MediaWiki:Main.css "); main_css_link.href = 'https://wiki.biligame.com/wukong/MediaWiki:Main.css?action=raw&ctype=text/css&rand=' + Math.random(); } head.appendChild(main_css_link); window._is_main_css_loaded = true; }
}catch(e) {
console.log("Widget:LoadMainCSS:Error, MediaWiki:Main.css 加载失败", e); console.error(e.stack);
} </script>