User:Mr. Stradivarius/RANreminder.js

/* This script gives the edit window a pink background (the same one that
 * administrators and template editors see on protected pages) if a) the
 * page is in article space, and b) the page does not already exist.
 * To use it, put the following code in Special:MyPage/skin.js:

importScript('User:Mr. Stradivarius/RANreminder.js'); // Linkback: User:Mr. Stradivarius/RANreminder.js



$( document ).ready(function {	if ( mw.config.get('wgNamespaceNumber') === 0 // We are in article space && mw.config.get('wgAction') === 'edit' && mw.config.get('wgArticleId') === 0 // Page doesn't exist && mw.config.get('wgIsProbablyEditable') && $( '#wpTextbox1' ).length // Edit box element exists ) {		$( '#wpTextbox1' ).addClass( 'mw-textarea-protected' );	} });