Jump to content

User:Zer0431/monobook.js

From Wikipedia, the free encyclopedia
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 = [0, 1, 6, 7];
if (!allowed.in_array(wgNamespaceNumber) && document.location.toString().indexOf('action=edit') != -1)
{
	alert('Reminder: Your community topic ban restricts you from editing this namespace. For the user talk namespace, you are allowed to edit your own talkpage, and as for others, only essential posts are allowed.');
}
//importScript('User:AzaToth/twinkle.js');

importScript('User:TheJosh/Scripts/RecentChangesPatrol.js');
importScript("User:Lupin/recent2.js");