5 lines
165 B
JavaScript
5 lines
165 B
JavaScript
(function() {
|
|
for (const link of document.getElementsByTagName('a')) {
|
|
if (/^(https?:)?\/\//.test(link.getAttribute('href'))) link.target = '_blank';
|
|
}
|
|
})(); |