Jump to content

User:CowboySpartan/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.
TwinkleConfig = {
	batchdeleteChunks			:	50,
	batchDeleteMinCutOff			:	5,
	batchMax				:	5000,
	batchProtectChunks			:	50,
	batchProtectMinCutOff			:	5,
	batchundeleteChunks			:	50,
	batchUndeleteMinCutOff			:	5,
  	blankTalkpageOnIndefBlock		:	false,
  	defaultWarningGroup			:	1,
	deleteTalkPageOnDelete			:	false,
	deletionSummaryAd			:	' using [[WP:TW|TW]]',
	deliChunks				:	500,
	deliMax					:	5000,
  	markAIVReportAsMinor			:	true,
  	markSockReportAsMinor			:	true,
  	markUAAReportAsMinor			:	true,
	markRevertedPagesAsMinor		:	[ 'vand' ],
	markSpeedyPagesAsMinor			:	false,
	markSpeedyPagesAsPatrolled		:	true,
	notifyUserOnDeli			:	true,
	notifyUserOnSpeedyDeletionNomination	:	[ 'g1', 'g2', 'g3', 'g4', 'g10', 'g11', 'g12', 'a1', 'a2', 'a3', 'a5', 'a7', 'a9', 'i1', 'i2', 'i3', 'i4', 'i5', 'i6', 'i7', 'i9', 'i10', 'i11', 'u3', 't2', 't3', 'p2' ],
	offerReasonOnNormalRevert		:	true,
	openTalkPage				:	[ 'agf', 'norm', 'vand' ],
	openTalkPageOnAutoRevert		:	false,
	openUserTalkPageOnSpeedyDelete		:	[ 'g1', 'g2', 'g3', 'g4', 'g5', 'g10', 'g11', 'g12', 'a1', 'a3', 'a7', 'a9', 'i3', 'i4', 'i5', 'i6', 'i7', 'i9', 'i11', 'u3', 't2' ],
	orphanBacklinksOnSpeedyDelete		:	{exclude:['g6'], orphan:true},
	proddeleteChunks			:	50,
	protectionSummaryAd			:	' using [[WP:TW|TW]]',
	revertMaxRevisions			:	50,
	showRollbackLinks			:	[ 'diff', 'others' ],
	showSharedIPNotice			:	true,
	summaryAd				:	' using [[WP:TW|TW]]',
	userTalkPageMode			:	'window',
	watchProdPages				:	true,
	watchRevertedPages			:	[ 'agf', 'norm', 'vand', 'torev' ],
	watchSpeedyPages			:	[ 'g3', 'g5', 'g10', 'g11', 'g12', 't1' ],
  	watchWarnings				:	true
};

importScript('User:AzaToth/twinkle.js');

function hidevfd(){
    var divs = document.getElementsByTagName("div");
    for(var x = 0; x < divs.length; ++x)
        if(divs[x].className.indexOf("vfd") != -1)
            divs[x].style.display = "none";
    document.getElementById('footer').style.display = 'none';
}

function showvfd(){
    var divs = document.getElementsByTagName("div");
    for(var x = 0; x < divs.length; ++x)
        if(divs[x].className.indexOf("vfd") != -1)
            divs[x].style.display = "";
    document.getElementById('footer').style.display = '';
}

function addlilink(tabs, url, name){
    var na = document.createElement('a');
    na.href = url;
    na.appendChild(document.createTextNode(name));
    var li = document.createElement('li');
    li.appendChild(na);
    tabs.appendChild(li);
    return li;
}

function vfdlinks(){
    var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
    if(document.title.indexOf("Wikipedia:Articles for deletion") == 0){
        addlilink(tabs, 'javascript:hidevfd()', 'Hide');
        addlilink(tabs, 'javascript:showvfd()', 'Show');
    }
}

if (window.addEventListener) window.addEventListener("load",vfdlinks,false);
else if (window.attachEvent) window.attachEvent("onload",vfdlinks);