MediaWiki:Vector.js
跳到导航
跳到搜索
注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:前往菜单 → 历史(Mac为Opera → Preferences),或按Ctrl-Shift-Del,然后清除浏览数据 → 勾选“已缓存的图片和文件” → 清除数据。
/* 这里的任何JavaScript将为使用Vector皮肤的用户加载 */
/* AntiDev Solution */
/*
(function() {
if (
!mw.config.get("wgUserGroups").includes("sysop")
) {
var checkStatus;
var element = document.createElement("any");
Object.defineProperty(element, "id", {
get: function get() {
checkStatus = "on";
}
});
var threshold = 160;
var i = setInterval(function() {
var widthThreshold = window.outerWidth - window.innerWidth > threshold;
var heightThreshold = window.outerHeight - window.innerHeight > threshold;
checkStatus = "off";
console.log(element);
console.clear();
if (widthThreshold || heightThreshold || checkStatus === "on") {
clearInterval(i);
$(".mw-body").css(
"background",
"url(/images/6/6a/Bg-mc-devmode.png) repeat rgba(248, 248, 248, 0.8)"
);
}
}, 300);
}
})();*/