diff options
Diffstat (limited to 'links.js')
| -rw-r--r-- | links.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ -(function() { - for (const link of document.getElementsByTagName('a')) { - if (/^(https?:)?\/\//.test(link.getAttribute('href'))) link.target = '_blank'; - } +(function() {
+ for (const link of document.getElementsByTagName('a')) {
+ if (/^(https?:)?\/\//.test(link.getAttribute('href'))) link.target = '_blank';
+ }
})();
\ No newline at end of file |
