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

Content deleted Content added
[0dd03d9] fix improper heading N detection
[efac058] fix rev toolbar not properly moving to next rev
Line 3,470:
 
var version = "0.3.0";
var gitAbbrevHash = "c43003aefac058";
var gitBranch = "main";
var gitDate = "MonWed, 57 Dec 2022 1613:5801:0523 +0800";
var gitVersion = "0.3.0+gc43003agefac058";
 
/**
Line 4,719:
swapElements(contentText, newContentText);
document.querySelectorAll('#ca-edit a, #ca-ve-edit a').forEach((e) => {
const newEditUrl = new URL(e.getAttribute('href'), window.___location.href);
newEditUrl.searchParams.set('oldid', `${diff}`);
e.setAttribute('href', newEditUrl.href);