User:Polygnotus/Scripts/SectionLinks.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 5:
headers.forEach(header => {
// Skip the table of contents heading
if (header.id === 'mw-toc-heading') {
return;
}
 
const isCurrentVersion = !window.___location.search.match(/[?&]oldid=(\d+)/) && !document.querySelector('.diff-currentversion-title');