社区文档构建进行中,欢迎编辑。社区答疑群(非官方):717421103

全站通知:

Widget:LoadMainCSS

来自WIKI实验室WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索

<script> try { if(window._is_main_css_loaded){

   console.log("Skip: Main.css is loaded");

}else{

   var tmp_skyrim_main_css_version = localStorage.getItem('skyrim_main_css_version');
   if (tmp_skyrim_main_css_version) {
   } else {
       tmp_skyrim_main_css_version = "rand"+Math.random()
   }
   var head = document.getElementsByTagName('head')[0];
   var main_css_link = document.createElement('link');
   main_css_link.rel = 'stylesheet';
   main_css_link.type = 'text/css';
   console.log("Load Main.css ver:"+tmp_skyrim_main_css_version);
   main_css_link.href = 'https://wiki.biligame.com/tools/MediaWiki:Main.css?action=raw&ctype=text/css&version=' + tmp_skyrim_main_css_version;
   head.appendChild(main_css_link);
   try {window._is_main_css_loaded = true;}catch (error) {}

}

}catch(e) { console.log("Error, MediaWiki:Main.css 加载失败");console.error(e, e.stack);} </script>