Widget:TalkToc:修订间差异
跳到导航
跳到搜索
无编辑摘要
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
第299行: | 第299行: | ||
}).trigger('hashchange'); | }).trigger('hashchange'); | ||
const g = ["sysop", "patroller"]; | const g = ["sysop", "patroller"]; | ||
if (mw.config.get("wgUserGroups").filter(n => g.includes(n)).length === 0 && mw.config.get("wgPageName").startsWith("H萌娘讨论")) { | if (mw.config.get("wgUserGroups").filter(n => g.includes(n)).length === 0 && mw.config.get("wgPageName").startsWith("H萌娘讨论:讨论版")) { | ||
$("#right-navigation").addClass("no-need-to-edit-whole-page").find("#p-views > ul").append('<li id="ca-no-need-to-edit-whole-page-notice" class="collapsible"><span><a href="javascript:void(0);">请勿编辑全文</a></span></li>').find("#collapsible istalk").on("click", function() { | $("#right-navigation").addClass("no-need-to-edit-whole-page").find("#p-views > ul").append('<li id="ca-no-need-to-edit-whole-page-notice" class="collapsible"><span><a href="javascript:void(0);">请勿编辑全文</a></span></li>').find("#collapsible istalk").on("click", function() { | ||
var messageDialog = new OO.ui.MessageDialog(); | var messageDialog = new OO.ui.MessageDialog(); |