User:Chlod/Scripts/Deputy.js: Difference between revisions

Content deleted Content added
(bot/CD)
(bot/CD)
Line 351:
 
var version = "0.8.0";
var gitAbbrevHash = "4441fafd46aa10";
var gitBranch = "main";
var gitDate = "Mon, 248 JunJul 2024 0002:5851:4814 +0800";
var gitVersion = "0.8.0+g4441fafgd46aa10";
 
/**
Line 1,059:
// To determine if we are inside or outside, we keep climbing up until
// we either hit an <hN> or a given stop point.
// The default stop point is,differs byon default,Parsoid `.mw-parser-output`,and whichstandard exists both in aparser:
// - On Parsoid, document`<body>` andwill in standardbe `.mw-body-content.mw-parser -output`. If such an element doesn't
// - On standard parser, we want `div.mw-body-content > div.mw-parser.output`.
// If such an element doesn't
// exist in this document, we just stop at the root element.
ceiling = (_a = ceiling !== null && ceiling !== void 0 ? ceiling : elementNode.ownerDocument.querySelector('.mw-body-content > .mw-parser-output, .mw-body-content.mw-parser-output')) !== null && _a !== void 0 ? _a : elementNode.ownerDocument.documentElement;
// While we haven't hit a heading, keep going up.
while (elementNode !== ceiling) {