User:Nixinova/version-autocorrect.js

var heading = $('#firstHeading').html; var javavers = [ '1.11', '1.11.1', '1.11.2' ]; if ( heading.contains('Java Edition ') && javavers.indexOf(heading.split(" ").pop) == -1 ) { $('.mw-content-text .noarticletext').html("This version does not exist. Did you mean" + javavers[2] + "?" ); };