MediaWiki:Common.js

/* */

/* Include Global Anime-Common.js Information */ document.write(' ');

/* Display Big Warnings when about to edit pages you are not supposed to edit -Dantman */ addOnloadHook(jutsuWarning); function jutsuWarning { if ( wgNamespaceNumber == 0 && wgTitle.match( /^List of (Nin|Tai|Gen)jutsu$/ ) && queryString('action', true).match(/^edit|submit$/) ) { var ask = confirm( "This is a Warning!\n"		                + "You are currently trying to edit a page re-generated bot a bot.\n"		                 + "If you make changes to this page they will be overridden the next time that the bot runs.\n"		                 + "These pages have a /list subpage which the bot uses to generate the lists.\n"		                 + "Please edit " + wgTitle + "/list instead of the current page.\n"		                 + "\n"		                 + "We are not responsible if the changes you make here are overridden.\n"		                 + "Do you wish to continue editing this page?\n"		                 + "If you hit cancel, you will be redirected to the edit page for the list subpage and you can make your changes there.\n" ); if( !ask ) { window.location = wgServer + '/index.php?title=' + encodeURI( wgTitle + '/list' ) + '&action=edit'; }	} }

/* */