MediaWiki:Common.js: Difference between revisions
Created page with "→Any JavaScript here will be loaded for all users on every page load.: document.querySelectorAll('.sol-newtab a').forEach(link => { link.setAttribute('target', '_blank'); });" |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
document.querySelectorAll('.sol-newtab a').forEach(link => { | document.querySelectorAll('.sol-newtab a').forEach(link => { | ||
link.setAttribute('target', '_blank'); | |||
}); | |||
document.querySelectorAll('.sol-newtab area').forEach(link => { | |||
link.setAttribute('target', '_blank'); | link.setAttribute('target', '_blank'); | ||
}); | }); | ||