MediaWiki:Gadget-CommentsinLocalTime.js
跳到导航
跳到搜索
注意:这类代码页面在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- 按住
CTRL+SHIFT+DEL 或 ⌘-Shift-R
来清除缓存! - 或尝试在地址栏的地址最后添加代码
?_=1
来访问最新页面。 - 你还可以在设置中勾选小工具在页面右上角添加清除缓存按钮!
window.LocalComments = $.extend({
enabled: true,
}, {
excludeNamespaces: Object.keys(mw.config.get("wgFormattedNamespaces")).map(function (ns) { return +ns; }).filter(function (ns) { return ns < 0 || ns % 2 === 0; }),
}, window.LocalComments);
if (window.LocalComments.enabled &&
!window.LocalComments.excludeNamespaces.includes(mw.config.get("wgNamespaceNumber")) && ["view", "submit"].includes(mw.config.get("wgAction")) &&
mw.util.getParamValue("disable") !== "loco") {
mw.loader.load("//zh.moegirl.org.cn/index.php?title=User:AnnAngela/js/CommentsInLocalTime.js&action=raw&ctype=text/javascript")
};