lemniskett.moe/layouts/partials/extend_head.html
2023-09-04 18:02:37 +07:00

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>