MediaWiki:Monobook.js

/* Any JavaScript here will be loaded for users using the MonoBook skin */

// Remove dismiss option from Site $('#mw-dismissable-notice > tbody > tr > td:last').remove;

// Autocomplete for search mw.loader.using('jquery.ui.autocomplete', function {	$('#SearchInput').autocomplete({ minLength: 2, source: function (request, response) { $.getJSON(				mw.util.wikiScript('api'), {					format: 'json',					action: 'opensearch',					search: request.term				}, function (arr) {					if (arr && arr.length > 1) {						response(arr[1]);					} else {						response([]);					}				}			); }	}); });