User:SPage (WMF)/makeAgora.js

// Always try to load mediawiki.ui mediaWiki.loader.load( 'mediawiki.ui' );

// You can append &useAgora=1 to a URL to DISABLE automatic button styling.

if ( mediaWiki.util.getParamValue( 'useAgora' ) !== 0 ) { jQuery( function {        var $submits = jQuery( 'input[type="submit"]' );        // But not  mw-ui-block mw-ui-big        $submits.addClass( 'mw-ui-button' );        // Guess the first button is the most important one.        $submits.filter( ':first' ).addClass( 'mw-ui-primary' );        // TODO: could look for "Delete" text, etc. andd add mw-ui-destructive.        // TODO: could notify if it changed some buttons.

// TODO: also attempt to make forms into mw-ui-vform ? } ); }