MediaWiki:Quick-delete.js

Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
//If you want to have the extended functions, just activate the Quick Delete gadget in your preferences.
(function($, mw) {
// Show a watchlist note that there are deprecated script imports in the monobook/common.js
if (-1 === mw.config.get('wgNamespaceNumber') && 'Watchlist' === mw.config.get('wgCanonicalSpecialPageName')) {
	var dp = "MediaWiki:Quick-delete.js. QuickDelete is a gadget now and can be enabled in your preferences";
	$('<p>').text("You are using the following deprecated script or function: " + dp + ". To correct this, please check your ")
		.append(
			$('<a>', { href: mw.util.getUrl('Special:MyPage/monobook.js'), text: "monobook.js" }), 
			", ", 
			$('<a>', { href: mw.util.getUrl('Special:MyPage/common.js'), text: "common.js" })
		)
		.prependTo('#mw-content-text');
}
}(jQuery, mediaWiki));