12 lines
416 B
HTML
12 lines
416 B
HTML
|
<script>
|
||
|
document.addEventListener('DOMContentLoaded', function () {
|
||
|
var links = document.getElementsByTagName("a");
|
||
|
var i;
|
||
|
for (i = 0; i < links.length; i++) {
|
||
|
if (location.hostname !== links[i].hostname) {
|
||
|
links[i].rel = "external nofollow noopener noreferrer";
|
||
|
links[i].target = "_blank";
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
</script>
|