This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open the console and paste this code into it. | |
// Get all the text links to footnotes | |
const textLinks = document.querySelectorAll('a[href^="#f"]'); | |
// Iterate over each text link | |
textLinks.forEach((link) => { | |
// Get the footnote number from the 'href' attribute of the text link | |
// f{num}n | |
let href=link.getAttribute('href') |