_ _    _ _____  ___   __                       
 __      _(_) | _(_)___ / ( _ ) / /_   ___ ___  _ __ ___  
 \ \ /\ / / | |/ / | |_ \ / _ \| '_ \ / __/ _ \| '_ ` _ \ 
  \ V  V /| |   <| |___) | (_) | (_) | (_| (_) | | | | | |
   \_/\_/ |_|_|\_\_|____/ \___/ \___(_)___\___/|_| |_| |_|

User:Gary/custom minor edits.js

This article will address the topic of User:Gary/custom minor edits.js, which has aroused great interest in different areas of society. For years, User:Gary/custom minor edits.js has been the subject of numerous studies and research, which has allowed greater knowledge about its importance and relevance in various contexts. Likewise, User:Gary/custom minor edits.js has generated debates and controversies due to its implications in people's daily lives. Through this article, we aim to offer an exhaustive analysis of User:Gary/custom minor edits.js, considering its multiple facets and its impact on current society.
/*
	CUSTOM MINOR EDITS
	Description: Force minor edits on whichever namespaces are specificed. Can either use names or numbers, from ].
	
	Example:
		minorEditNamespaces = ;
		
	The above example would set minor edits as default for the "Main" namespace (for Articles) and "2" namespace (ID number for "User").
	NOTE: "Wikipedia" namespace is "Project" in this script.
*/

if (typeof(unsafeWindow) != 'undefined')
{
	mw = unsafeWindow.mw;
}

function customMinorEdits()
{
	if (mw.config.get('wgAction') != 'edit' || typeof(minorEditNamespaces) == 'undefined' || minorEditNamespaces.length == 0) return false;
	
	var checkbox = $('#wpMinoredit');
	if (!checkbox.length) return false;
	
	if ($.inArray(mw.config.get('wgCanonicalNamespace'), minorEditNamespaces) != -1 || $.inArray(mw.config.get('wgNamespaceNumber'), minorEditNamespaces) != -1)
	{
		checkbox.attr('checked', true);
	}
}

$(document).ready(function()
{
	customMinorEdits();
});