Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Remove the footnote indicators from text
- document.querySelectorAll('sup[id^="cite_ref"').outerHTML= ""
- # Each heading has an `[edit]` button. This botton consists of two <span>s holding the brackets, and an anchor. Remove each of them.
- document.querySelectorAll('span').forEach(elem => elem.innerHTML == "[" ? elem.outerHTML = "" : console.log('skipped'))
- document.querySelectorAll('span').forEach(elem => elem.innerHTML == "]" ? elem.outerHTML = "" : console.log('skipped'))
- document.querySelectorAll('a[href*="action=edit"]').forEach(elem => elem.outerHTML = "")
Add Comment
Please, Sign In to add comment