全站通知:
MediaWiki:Common.js
刷
历
编
跳到导航
跳到搜索
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
mw.loader.load("//wiki.biligame.com/ap/index.php?title=MediaWiki:Main.js&action=raw&ctype=text/javascript", "text/javascript");
(function () {
var gameName = RLCONF.wgGameName;
var pageName = RLCONF.wgPageName;
// 重定向带有curid的URL,避免无法刷新的缓存
if (pageName) {
var urlParams = new URLSearchParams(window.location.search);
if (urlParams.get('curid') && !urlParams.get('diff') && urlParams.get('action') !== 'history') {
window.location.replace(window.location.href.replace("index.php?curid=" + articleId, "index.php?title=" + pageName).replace("?curid=" + articleId, pageName));
}
}
// 防止重复加载Site.js
if (!window.CommonJsPreload) {
window.CommonJsPreload = true;
try {
var ctype = "text/javascript";
var src = "/" + gameName + "/MediaWiki:Site.js?action=raw&ctype=" + ctype;
// 界面管理员特殊处理:禁用缓存
if (localStorage.getItem(gameName + "-interface-admin")) {
src += "&rand=" + Math.random();
}
mw.loader.load(src, ctype);
} catch (e) { }
}
})();

沪公网安备 31011002002714 号