MediaWiki:Common.js: Difference between revisions
Dragon 12dk (talk | contribs) No edit summary |
Dragon 12dk (talk | contribs) No edit summary |
||
| Line 43: | Line 43: | ||
} )(); | } )(); | ||
/* ── Embed: open links in new tab ── */ | /* ── Embed: open links in new tab (only when ?embed=1) ── */ | ||
( function () { | ( function () { | ||
if ( window === window.top ) return; | if ( window === window.top ) return; | ||
if ( !window.location.search.includes( 'embed=1' ) ) return; | |||
function retargetLinks() { | function retargetLinks() { | ||