Snippets/Tick "Ignore any warnings" automatically

Jump to navigation Jump to search
How to use Snippets
List of Snippets
OOjs UI icon advanced.svg
Tick "Ignore any warnings" automatically
Language(s): JavaScript
Compatible with: MediaWiki 1.20+ 


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.


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