Guest User

Untitled

a guest
Jul 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. # Remove the footnote indicators from text
  2.  
  3. document.querySelectorAll('sup[id^="cite_ref"').outerHTML= ""
  4.  
  5. # Each heading has an `[edit]` button. This botton consists of two <span>s holding the brackets, and an anchor. Remove each of them.
  6.  
  7. document.querySelectorAll('span').forEach(elem => elem.innerHTML == "[" ? elem.outerHTML = "" : console.log('skipped'))
  8.  
  9. document.querySelectorAll('span').forEach(elem => elem.innerHTML == "]" ? elem.outerHTML = "" : console.log('skipped'))
  10.  
  11. document.querySelectorAll('a[href*="action=edit"]').forEach(elem => elem.outerHTML = "")
Add Comment
Please, Sign In to add comment