MediaWiki:Common.js: Difference between revisions

From Artifacts of Capitalism
Blanked the page
Tag: Blanking
No edit summary
Tag: Reverted
Line 1: Line 1:
 
// Move the “Artifact types” dropdown out of the header and into the real sidebar
$( function () {
  // grab the header dropdown
  var $artifact = $( '.p-Artifact-types-dropdown' );
  if ( $artifact.length ) {
    // move it into #mw-panel (the left sidebar)
    $( '#mw-panel' ).append( $artifact );
    // optional: if you want it at the very top of the sidebar
    // $( '#mw-panel' ).prepend( $artifact );
  }
} );

Revision as of 23:54, 14 July 2025

// Move the “Artifact types” dropdown out of the header and into the real sidebar
$( function () {
  // grab the header dropdown
  var $artifact = $( '.p-Artifact-types-dropdown' );
  if ( $artifact.length ) {
    // move it into #mw-panel (the left sidebar)
    $( '#mw-panel' ).append( $artifact );
    // optional: if you want it at the very top of the sidebar
    // $( '#mw-panel' ).prepend( $artifact );
  }
} );