0

I'd like to insert a <br> in front of all the <strong> tags in someone else's website (using the console). I can insert them after with this:

Array.from(document.getElementsByTagName('strong')).forEach((x) => x.appendChild(document.createElement('br')))

How can I do it before?

nachocab
  • 13,328
  • 21
  • 91
  • 149

0 Answers0