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

Content deleted Content added
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2:
(function() {
function addLinkIcons() {
if (mw.config.get('wgIsMainPage')) {
return;
}
const headers = document.querySelectorAll('h2[id]');
Line 18 ⟶ 23:
} else {
// Add single icon for old revision or diff
addIcon(header, '�', true, 'Copy link to this section of this specific revision');
}
});