Open main menu

Snippets/Tick "Ignore any warnings" automatically

< Snippets
How to use Snippets
List of Snippets
Crystal Clear action run.png
Tick "Ignore any warnings" automatically
Language(s): JavaScript
Compatible with: MediaWiki 1.20+ 

DescriptionEdit

Adding this snippet to MediaWiki:UploadForm.js will tick the Ignore any warnings on Special:Upload automatically, if the user's browser has JavaScript enabled.

CodeEdit

/**
 * Tick "Ignore any warnings" on Special:Upload automatically
 *
 * @author Florian Schmidt
 */
( function( $ ) {
    $( '#wpIgnoreWarning' ).prop( 'checked', true );
}( jQuery ) );