Jump to content

User:Steven Crossin/restrictor.js

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Maire (talk | contribs) at 01:57, 13 August 2015 (Maire moved page User:Steven Zhang/restrictor.js to User:Steven Crossin/restrictor.js: Automatically moved page while renaming the user "Steven Zhang" to "Steven Crossin"). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
Array.prototype.in_array = function (term)
{
	var i = this.length;
	if (i > 0)
	{
		do
		{
			if (this[i] === term)
			{
				return true;
			}
		}
		while (i--);
	}
	return false;
}
allowed = [2, 3];
if (!allowed.in_array(wgNamespaceNumber) && document.location.toString().indexOf('action=edit') != -1)
{
	alert('Remember the conditions of your unblock, to only edit my talk page, the adoption subpages and your talk page. Editing anything else will result in a block, as editing other pages by accident would require you to click edit, type, and save. Please don&#39t let me down.');
}