MediaWiki:Gadget-CommentsinLocalTime.js:修订间差异
跳到导航
跳到搜索
MediaWiki>Xiplus (修復: 如果一個text node有多個時間戳 原本只有第一個時間戳被轉換) |
imported>=海豚= 无编辑摘要 |
||
(未显示同一用户的5个中间版本) | |||
第1行: | 第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") | |||
}; | |||
function | |||
{ | |||
2021年5月17日 (一) 00:47的最新版本
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")
};