lemniskett.moe/layouts/partials/extend_head.html

12 lines
416 B
HTML
Raw Permalink Normal View History

2023-09-04 11:02:37 +00:00
<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>