User:Jonas Kress (WMDE)/check constraints.js

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
( function( mw ) {
	mw.loader.using( 'wikibase.quality.constraints.gadget' );

	mw.loader.using( 'mediawiki.notification' ).then( function() {
		mw.notification.notify(
			$( '<span>' )
				.append( 'The ' )
				.append(
					$( '<tt>' )
						.text( 'check_constraints.js' ) )
				.append( ' user script will be removed soon. ' )
				.append( 'Please remove it from ' )
				.append(
					$( '<a>' )
						.attr( 'href', '/wiki/Special:MyPage/common.js' )
						.text( 'your common.js' ) )
				.append( ' and instead enable the ' )
				.append(
					$( '<i>' )
						.text( 'checkConstraints' ) )
				.append( ' gadget in your ' )
				.append(
					$( '<a>' )
						.attr( 'href', '/wiki/Special:Preferences#mw-prefsection-gadgets' )
						.text( 'preferences' ) )
				.append( '.' ),
			{
				autoHideSeconds: 'long',
				type: 'warn'
			}
		);
	} );
} )( mediaWiki );