MediaWiki:Common.js: Difference between revisions

No edit summary
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() {