bootjp
3/18/2017 - 12:27 AM

append noopener.js

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';
  }
});