User:Polygnotus/DuplicateReferences.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 305:
});
 
// Highlight duplicates on click and allow navigation
link.addEventListener('click', (e) => {
e.preventDefault();
// Remove previous click highlights
document.querySelectorAll('.duplicate-citation-clicked').forEach(el => {
Line 319 ⟶ 318:
}
});
e.preventDefault// The default behavior (navigation); will now occur
});
} else {