diff --git a/macrovision.js b/macrovision.js index 64999558..3bc24351 100644 --- a/macrovision.js +++ b/macrovision.js @@ -1767,6 +1767,8 @@ function displayAttribution(file) { const link = document.createElement("a"); link.href = author.url; link.innerText = author.name; + link.rel = "noreferrer no opener"; + link.target = "_blank"; authorEntry.appendChild(link); } else { const div = document.createElement("div"); @@ -1799,6 +1801,8 @@ function displayAttribution(file) { const link = document.createElement("a"); link.href = owner.url; link.innerText = owner.name; + link.rel = "noreferrer no opener"; + link.target = "_blank"; ownerEntry.appendChild(link); } else { const div = document.createElement("div"); @@ -1823,6 +1827,8 @@ function displayAttribution(file) { link.style.display = "block"; link.href = citation; link.innerText = new URL(citation).host; + link.rel = "noreferrer no opener"; + link.target = "_blank"; citationEntry.appendChild(link); list.appendChild(citationEntry); }) @@ -1844,6 +1850,8 @@ function displayAttribution(file) { link.style.display = "block"; link.href = source; link.innerText = new URL(source).host; + link.rel = "noreferrer no opener"; + link.target = "_blank"; sourceHolder.appendChild(link); } }