Open external links in a new tab not working

Hi team!
Try to implement this solution (option 1 on step 4) - it does not work in my installation. This tip was validated on IE and Chrome, but I use Mozilla Firefox 73.0.1. How can I use this tip with firefox?

Regards, Vadim

Just tested and it works fine.

Pease provide your wiki syntax content.

I’ve succesfully done this in our instance and it generally works.

But I’ve just discovered that it’s not working for external links in comments:

Link in page content:
immagine

Link in page comment:
immagine

Though the HTML looks similar: could be that the comments section is loaded asynchronously, hence the “DOMContentLoaded” event triggers too early?