Skip to content

Commit

Permalink
feat(SectionPermanentLink): 排除“萌娘百科_talk:讨论版”页面
Browse files Browse the repository at this point in the history
BearBin1215 authored Dec 26, 2023
1 parent 6805895 commit b472b16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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) => {

0 comments on commit b472b16

Please sign in to comment.