append noopener.js
Array.prototype.slice.call(document.getElementsByTagName('a')).forEach(function(element) { if (element.target === '_blank' && element.rel.indexOf('noopener') === -1) { element.rel += ' noopener'; } });