diff --git a/src/gadgets/SectionPermanentLink/MediaWiki:Gadget-SectionPermanentLink.js b/src/gadgets/SectionPermanentLink/MediaWiki:Gadget-SectionPermanentLink.js index 9d0e9f61..05b1297e 100644 --- a/src/gadgets/SectionPermanentLink/MediaWiki:Gadget-SectionPermanentLink.js +++ b/src/gadgets/SectionPermanentLink/MediaWiki:Gadget-SectionPermanentLink.js @@ -1,6 +1,6 @@ "use strict"; $(() => { - if (mw.config.get("wgNamespaceNumber") % 2 === 1) { + if (mw.config.get("wgNamespaceNumber") % 2 === 1 && mw.config.get("wgPageName") !== "萌娘百科_talk:讨论版") { const inHistory = !document.getElementsByClassName("mw-editsection")[0]; const buttunText = wgULS("固定链接", "固定連結"); $("#mw-content-text .mw-parser-output h2").each((_, ele) => {