User:Sam Sailor/utnawh.js

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/*
Modified from [[:en:Special:PermaLink/491523047]]
*/
// <pre><nowiki>
// Month section
function whackMonth () {
	var d=new Date();
	var f = document.editform;
	var month=new Array(12);
	month[0]="January"; month[1]="February"; month[2]="March"; month[3]="April"; month[4]="May"; month[5]="June";
	month[6]="July"; month[7]="August"; month[8]="September"; month[9]="October";
	month[10]="November"; month[11]="December";
	f.wpTextbox1.value += "\n== "+month[d.getMonth()]+" "+d.getFullYear()+" ==\n\n";
	f.wpSummary.value = month[d.getMonth()];
	f.wpMinoredit.checked=true;
	f.wpWatchthis.checked=false;
	if (f.wpTextbox1.scrollTop || true)
	f.wpTextbox1.scrollTop = f.wpTextbox1.scrollHeight;
}
// Check for month when making an edit
function whackCheckMonth () {
	var d=new Date();
	var f = document.editform;
	var month=new Array( "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	var myregexstr = new String ('== *' + month[d.getMonth()] + " " + d.getFullYear() + ' *==');
	var myregex = new RegExp(myregexstr);
	if (myregex.test(f.wpTextbox1.value) !== true) {
		f.wpTextbox1.value += "\n== "+month[d.getMonth()]+" "+d.getFullYear()+" ==\n";
		f.wpSummary.value = month[d.getMonth()];
		if (f.wpTextbox1.scrollTop || true)
		f.wpTextbox1.scrollTop = f.wpTextbox1.scrollHeight;
	}
}

// Notifications and warnings
function whackEdit (message, msg2, summary, level) {
	var f = document.editform;
	var tbox = document.editform.wpTextbox1;
	var a = "" + (window.getSelection ? window.getSelection()
	: document.getSelection ? document.getSelection()
	: document.selection.createRange().text);
	if (msg2 !== "") {
		a = prompt ("Article name?\n(Empty+OK for a generic message; Cancel aborts.)", a) ;
		if (a == null) return ;
		a = a.replace(/^\s+/, '') ;
		a = a.replace(/\,?\s*$/, '');
		if (a != null && a != "") {
			message = message.replace(/\|/,"|"+a) ;
			summary += " in [[" + a + "]]" ;
		} else {
			message = msg2 ;
		}
	}
	whackCheckMonth () ;
	f.wpTextbox1.value += "\n" + message + " <br clear=\"both\" />\n" ;
	f.wpSummary.value = summary;
	if (level > 0) { f.wpSummary.value += " /"+level+"/" ; }
	if (document.getElementById('wpMinoredit')) f.wpMinoredit.checked=false;
	f.wpWatchthis.checked=false;
	f.wpTextbox1.focus();
	if (f.wpTextbox1.scrollTop || true) f.wpTextbox1.scrollTop = f.wpTextbox1.scrollHeight;
}
function whack2redirect	(x) { whackEdit ("{{subst:uw-2redirect|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-2redirect}} ~~~~ {{subst:ppor}}",			"Notification about [[Wikipedia:Double redirects|double redirects]]", 0); }
function whackAccess	(x) { whackEdit ("{{subst:uw-accessdate"+x+"|}} ~~~~ {{subst:ppor}}",		"{{subst:uw-accessdate"+x+"}} ~~~~ {{subst:ppor}}",		"Not updating the access date parameter in citation templates", x); }
function whackAds		(x) { whackEdit ("{{subst:uw-advert"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-advert"+x+"}} ~~~~ {{subst:ppor}}",			"Using Wikipedia for [[Wikipedia:What Wikipedia is not#Wikipedia is not a soapbox|advertising]] or promotion", x); }
function whackAfcadd	(x) { whackEdit ("{{subst:uw-afcaddition|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-afcaddition}} ~~~~ {{subst:ppor}}",			"{{AFC submission}} has been added for you", 0); }
function whackAfd		(x) { whackEdit ("{{subst:uw-afd"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-afd"+x+"}} ~~~~ {{subst:ppor}}",			"Removing {{afd}} templates / refactoring others' comments in AfD discussions", x); }
function whackAffil		(x) { whackEdit ("{{subst:uw-affiliate|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-affiliate}} ~~~~ {{subst:ppor}}",			"Affiliate marketing warning", 0); }
function whackAGF		(x) { whackEdit ("{{subst:uw-agf"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-agf"+x+"}} ~~~~ {{subst:ppor}}",			"Not [[Wikipedia:Assume good faith|assuming good faith]]", x); }
function whackArchive	(x) { whackEdit ("{{subst:uw-archive|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-archive}} ~~~~ {{subst:ppor}}",				"Please archive your talk page"); }
function whackAutobio	(x) { whackEdit ("{{subst:uw-autobiography|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-autobiography}} ~~~~ {{subst:ppor}}",		"[[WP:AB|Autobiography]] notification", 0); }
function whackBadliste	(x) { whackEdit ("{{subst:uw-badlistentry|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-badlistentry}} ~~~~ {{subst:ppor}}",		"Notification about list entry", 0); }
function whackBadpblp	(x) { whackEdit ("{{subst:uw-badprodblp|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-badprodblp}} ~~~~ {{subst:ppor}}",			"Notification about [[WP:BLPPROD|prod blp]]", 0); }
function whackBlank		(x) { whackEdit ("{{subst:uw-blank"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-blank"+x+"}} ~~~~ {{subst:ppor}}",			"Page [[WP:BLANK|blanking]]", x); }
function whackBLP		(x) { whackEdit ("{{subst:uw-biog"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-biog"+x+"}} ~~~~ {{subst:ppor}}",			"Addition of unreferenced controversial information to [[Wikipedia:Biographies of living persons|BLPs]]", x); }
function whackBiognot	(x) { whackEdit ("{{subst:uw-biog-not|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-biog-not}} ~~~~ {{subst:ppor}}",			"Notification about trivial BLP additions", 0); }
function whackBlog		(x) { whackEdit ("{{subst:uw-blog|}} ~~~~ {{subst:ppor}}",					"{{subst:uw-blog}} ~~~~ {{subst:ppor}}",				"Notification about blogging/promotion", 0); }
function whackCfd		(x) { whackEdit ("{{subst:uw-cfd"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-cfd"+x+"}} ~~~~ {{subst:ppor}}",			"Removing {{cfd}} templates / refactoring others' comments in CfD discussions", x); }
function whackChat		(x) { whackEdit ("{{subst:uw-chat"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-chat"+x+"}} ~~~~ {{subst:ppor}}",			"Chatting in", x); }
function whackColor		(x) { whackEdit ("{{subst:uw-color"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-color"+x+"}} ~~~~ {{subst:ppor}}",			"Addition of non-compliant colours", x); }
function whackCreate	(x) { whackEdit ("{{subst:uw-create"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-create"+x+"}} ~~~~ {{subst:ppor}}",			"Creating inappropriate pages", x); }
function whackCWW		(x) { whackEdit ("{{subst:uw-copying|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-copying}} ~~~~ {{subst:ppor}}",				"Notification regarding [[Wikipedia:Copying within Wikipedia|Copying within Wikipedia]]", 0); }
function whackDate		(x) { whackEdit ("{{subst:uw-date|}} ~~~~ {{subst:ppor}}",					"{{subst:uw-date}} ~~~~ {{subst:ppor}}",				"Changing [[MOS:DATE|dates]]", 0); }
function whackDefa		(x) { whackEdit ("{{subst:uw-defamatory"+x+"|}} ~~~~ {{subst:ppor}}",		"{{subst:uw-defamatory"+x+"}} ~~~~ {{subst:ppor}}",		"[[Wikipedia:Libel|Defamation]] regarding article subjects", x); }
function whackDelete	(x) { whackEdit ("{{subst:uw-delete"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-delete"+x+"}} ~~~~ {{subst:ppor}}",			"Removal of content without adequate explanation", x); }
function whackDisrup	(x) { whackEdit ("{{subst:uw-disruptive"+x+"|}} ~~~~ {{subst:ppor}}",		"{{subst:uw-disruptive"+x+"}} ~~~~ {{subst:ppor}}",		"[[Wikipedia:Disruptive editing|Disruptive editing]]", x); }
function whackErrors	(x) { whackEdit ("{{subst:uw-error"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-error"+x+"}} ~~~~ {{subst:ppor}}",			"Introducing deliberate factual errors", x); }
function whackFfd		(x) { whackEdit ("{{subst:uw-ffd"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-ffd"+x+"}} ~~~~ {{subst:ppor}}",			"Removing {{ffd}} templates / refactoring others' comments in FfD discussions", x); }
function whackFringe	(x) { whackEdit ("{{subst:uw-fringe"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-fringe"+x+"}} ~~~~ {{subst:ppor}}",			"Inserting [[Wikipedia:Fringe theories|fringe]] or [[WP:UNDUE|undue weight]] content into articles", x); }
function whackGenre		(x) { whackEdit ("{{subst:uw-genre"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-genre"+x+"}} ~~~~ {{subst:ppor}}",			"Frequent or mass changes to [[List of genres|genres]] without consensus or reference", x); }
function whackHarass	(x) { whackEdit ("{{subst:uw-harass"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-harass"+x+"}} ~~~~ {{subst:ppor}}",			"[[Wikipedia:Harassment|Harassment]] of other users", x); }
function whackHoax		(x) { whackEdit ("{{subst:uw-hoax|}} ~~~~ {{subst:ppor}}",					"{{subst:uw-hoax}} ~~~~ {{subst:ppor}}",				"Suspected hoax", 0); }
function whackIcs		(x) { whackEdit ("{{subst:uw-ics"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-ics"+x+"}} ~~~~ {{subst:ppor}}",			"Uploading files missing copyright status", x); }
function whackIdt		(x) { whackEdit ("{{subst:uw-idt"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-idt"+x+"}} ~~~~ {{subst:ppor}}",			"Removing file deletion tags", x); }
function whackImage		(x) { whackEdit ("{{subst:uw-image"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-image"+x+"}} ~~~~ {{subst:ppor}}",			"[[Wikipedia:Image use policy|Image-related]] vandalism", x); }
function whackIslam		(x) { whackEdit ("{{subst:uw-islamhon"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-islamhon"+x+"}} ~~~~ {{subst:ppor}}",		"Adding Islamic honorifics without a specific reason", x); }
function whackJoke		(x) { whackEdit ("{{subst:uw-joke"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-joke"+x+"}} ~~~~ {{subst:ppor}}",			"Improper humor in articles", x); }
function whackMfd		(x) { whackEdit ("{{subst:uw-mfd"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-mfd"+x+"}} ~~~~ {{subst:ppor}}",			"Removing {{mfd}} templates / refactoring others' comments in MfD discussions", x); }
function whackMOS		(x) { whackEdit ("{{subst:uw-mos"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-mos"+x+"}} ~~~~ {{subst:ppor}}",			"Formatting, date, language, etc. (Manual of Style)", x); }
function whackMove		(x) { whackEdit ("{{subst:uw-move"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-move"+x+"}} ~~~~ {{subst:ppor}}",			"Malicious or bad page moves", x); }
function whackNOR		(x) { whackEdit ("{{subst:uw-nor"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-nor"+x+"}} ~~~~ {{subst:ppor}}",			"Original research, including unpublished syntheses of sourced material", x); }
function whackNotcen	(x) { whackEdit ("{{subst:uw-notcensored"+x+"|}} ~~~~ {{subst:ppor}}",		"{{subst:uw-notcensored"+x+"}} ~~~~ {{subst:ppor}}",	"[[Wikipedia:What Wikipedia is not#Wikipedia is not censored|Censorship of material]]", x); }
function whackNPA		(x) { whackEdit ("{{subst:uw-npa"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-npa"+x+"}} ~~~~ {{subst:ppor}}",			"[[Wikipedia:No personal attacks|Personal attack directed at editors]]", x); }
function whackNPOV		(x) { whackEdit ("{{subst:uw-npov"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-npov"+x+"}} ~~~~ {{subst:ppor}}",			"Not adhering to [[Wikipedia:Neutral point of view|neutral point of view]]", x); }
function whackOwn		(x) { whackEdit ("{{subst:uw-own"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-own"+x+"}} ~~~~ {{subst:ppor}}",			"[[Wikipedia:Ownership of content|Ownership of articles]]", x); }
function whackPaid		(x) { whackEdit ("{{subst:uw-paid"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-paid"+x+"}} ~~~~ {{subst:ppor}}",			"[[Wikipedia:Paid-contribution disclosure|Paid editing without disclosure]] under the [[wmf:TOU|Wikimedia Terms of Use]]", x); }
function whackPlot		(x) { whackEdit ("{{subst:uw-plotsum"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-plotsum"+x+"}} ~~~~ {{subst:ppor}}",		"[[Wikipedia:How to write a plot summary|Inappropriate expansion of plot summaries]]", x); }
function whackPreview	(x) { whackEdit ("{{subst:uw-preview|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-preview}} ~~~~ {{subst:ppor}}",				"Not using preview button to avoid mistakes", 0); }
function whackProdblp	(x) { whackEdit ("{{subst:uw-blpprod"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-blpprod"+x+"}} ~~~~ {{subst:ppor}}",		"Removing {{Prod blp}} templates", x); }
function whackRedirect	(x) { whackEdit ("{{subst:uw-redirect"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-redirect"+x+"}} ~~~~ {{subst:ppor}}",		"Creating malicious redirects", x); }
function whackSelf		(x) { whackEdit ("{{subst:uw-selfrevert|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-selfrevert}} ~~~~ {{subst:ppor}}",			"Self-reverted test", 0); }
function whackSpam		(x) { whackEdit ("{{subst:uw-spam"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-spam"+x+"}} ~~~~ {{subst:ppor}}",			"Addition of [[WP:Spam|spam]] links", x); }
function whackSpeedy	(x) { whackEdit ("{{subst:uw-speedy"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-speedy"+x+"}} ~~~~ {{subst:ppor}}",			"Removing {{speedy deletion}} templates from self-created articles", x); }
function whackSubtle	(x) { whackEdit ("{{subst:uw-subtle"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-vand"+x+"}} ~~~~ {{subst:ppor}}",			"Subtle vandalism", x); }
function whackTaxon		(x) { whackEdit ("{{subst:uw-taxonomy"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-taxonomy"+x+"}} ~~~~ {{subst:ppor}}",		"Disrupting the [[Template:Automatic taxobox/doc|taxonomy]] templates", x); }
function whackTdel		(x) { whackEdit ("{{subst:uw-tdel"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-tdel"+x+"}} ~~~~ {{subst:ppor}}",			"Removal of [[Wikipedia:Template messages|maintenance templates]]", x); }
function whackTempab	(x) { whackEdit ("{{subst:uw-tempabuse"+x+"|}} ~~~~ {{subst:ppor}}",		"{{subst:uw-tempabuse"+x+"}} ~~~~ {{subst:ppor}}",		"Improper use of [[Wikipedia:Template messages/User talk namespace|warning or blocking templates]]", x); }
function whackTest		(x) { whackEdit ("{{subst:uw-test"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-test"+x+"}} ~~~~ {{subst:ppor}}",			"Editing tests", x); }
function whackThumb		(x) { whackEdit ("{{subst:uw-thumb"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-thumb"+x+"}} ~~~~ {{subst:ppor}}",			"Using [[WP:INFOBOXIMAGE|thumbnails in infoboxes]]", x); }
function whackTilde		(x) { whackEdit ("{{subst:uw-tilde|}} ~~~~ {{subst:ppor}}",					"{{subst:uw-tilde}} ~~~~ {{subst:ppor}}",				"Remember to [[Wikipedia:Signature tutorial|sign talk page posts]]", 0); }
function whackTpv		(x) { whackEdit ("{{subst:uw-tpv"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-tpv"+x+"}} ~~~~ {{subst:ppor}}",			"Editing, correcting, or deleting others' talk page comments", x); }
function whackUnsourced	(x) { whackEdit ("{{subst:uw-unsourced"+x+"|}} ~~~~ {{subst:ppor}}",		"{{subst:uw-unsourced"+x+"}} ~~~~ {{subst:ppor}}",		"Addition of unsourced or improperly cited material", x); }
function whackUp		(x) { whackEdit ("{{subst:uw-upload"+x+"|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-upload"+x+"}} ~~~~ {{subst:ppor}}",			"Uploading unencyclopedic images", x); }
function whackUpfirst	(x) { whackEdit ("{{subst:uw-uploadfirst|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-uploadfirst}} ~~~~ {{subst:ppor}}",			"Upload images first", 0); }
function whackVandal	(x) { whackEdit ("{{subst:uw-vand"+x+"|}} ~~~~ {{subst:ppor}}",				"{{subst:uw-vand"+x+"}} ~~~~ {{subst:ppor}}",			"Blatant vandalism", x); }
function whackWronges	(x) { whackEdit ("{{subst:uw-wrongsummary|}} ~~~~ {{subst:ppor}}",			"{{subst:uw-wrongsummary}} ~~~~ {{subst:ppor}}",		"Inaccurate or inappropriate [[Help:Edit summary|edit summary]]", 0); }

// Installation
window.whack_addlilink=function(tabs, n, url, name, id, title, key){
	var ix;
	var li = document.createElement('li');
	if (n > 0) {
	li.appendChild(document.createTextNode(name));
	for (ix = 1 ; ix <= n ; ix++) {
		var na = document.createElement('a');
		na.href = url.replace(/XX/g, ix);
		na.appendChild(document.createTextNode(" "+ix));
		li.appendChild(na);
	}
	} else {
		var na = document.createElement('a');
		na.href = url;
		na.appendChild(document.createTextNode(name));
		li.appendChild(na);		
	}
	if(id) li.id = id;
	tabs.appendChild(li);
	if(id) {
		if(key && title) ta[id] = [key, title];
		else if(key)     ta[id] = [key, ''];
		else if(title)   ta[id] = ['', title];
	}
	// re-render the title and accesskeys from existing code in wikibits.js
    // ?? akeytt();
    return li;
}
window.whack_addToolboxLink=function(n, url, name, id){
	var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0];
	whack_addlilink(tb, n, url, name, id);
}
window.playWhackMoles=function() {
	if (document.title.match("Editing User talk:") || document.title.match("Creating User talk:") ) {
		whack_addlilink (document.getElementById('p-tb').getElementsByTagName('ul')[0],
        0, "http://en.wikipedia.org/wiki/Wikipedia:Template_messages/User_talk_namespace#Multi_level_templates",
        "Notices and warnings:", "uTemplates");
		whack_addToolboxLink(3, 'javascript:{whackTest(XX);};void(0);',			'Test',				'toolbox_test');
		whack_addToolboxLink(1, 'javascript:{whackSelf(XX);};void(0);',			'Self test',		'toolbox_selftest');
		whack_addToolboxLink(2, 'javascript:{whackSubtle(XX);};void(0);',		'Subtle vand.',		'toolbox_subtle');
		whack_addToolboxLink(4, 'javascript:{whackVandal(XX);};void(0);',		'Blatant vand.',	'toolbox_vandal');
		whack_addToolboxLink(3, 'javascript:{whackDisrup(XX);};void(0);',		'Disruptive',		'toolbox_disrup');
		whack_addToolboxLink(2, 'javascript:{whackBlank(XX);};void(0);',		'Blank',			'toolbox_blank');
		whack_addToolboxLink(4, 'javascript:{whackDelete(XX);};void(0);',		'Delete',			'toolbox_delete');
		whack_addToolboxLink(4, 'javascript:{whackGenre(XX);};void(0);',		'Genre',			'toolbox_genre');
		whack_addToolboxLink(4, 'javascript:{whackImage(XX);};void(0);',		'Image',			'toolbox_image');
		whack_addToolboxLink(4, 'javascript:{whackJoke(XX);};void(0);',			'Joke',	            'toolbox_joke');
		whack_addToolboxLink(3, 'javascript:{whackNotcen(XX);};void(0);',		'Not censored',		'toolbox_notcen');
		whack_addToolboxLink(3, 'javascript:{whackOwn(XX);};void(0);',			'Ownership',		'toolbox_own');
		whack_addToolboxLink(2, 'javascript:{whackPlot(XX);};void(0);',			'Plotsum',			'toolbox_own');
		whack_addToolboxLink(3, 'javascript:{whackTaxon(XX);};void(0);',		'Taxonomy',			'toolbox_taxon');
		whack_addToolboxLink(4, 'javascript:{whackTdel(XX);};void(0);',			'Template rem.',	'toolbox_tdel');
		whack_addToolboxLink(2, 'javascript:{whackThumb(XX);};void(0);',		'Thumbs infobox',	'toolbox_thumb');
		whack_addToolboxLink(4, 'javascript:{whackUp(XX);};void(0);',			'Uploads',			'toolbox_upload');
		whack_addToolboxLink(3, 'javascript:{whackAGF(XX);};void(0);',			'AGF',				'toolbox_agf');
		whack_addToolboxLink(4, 'javascript:{whackHarass(XX);};void(0);',		'Harassment',		'toolbox_harass');
		whack_addToolboxLink(4, 'javascript:{whackNPA(XX);};void(0);',			'Personal attacks',	'toolbox_npa');
		whack_addToolboxLink(2, 'javascript:{whackTempab(XX);};void(0);',		'Template abuse',	'toolbox_tempab');
		whack_addToolboxLink(4, 'javascript:{whackAds(XX);};void(0);',			'Advertising',		'toolbox_ads');
		whack_addToolboxLink(3, 'javascript:{whackFringe(XX);};void(0);',		'Fringe',			'toolbox_fringe');
		whack_addToolboxLink(4, 'javascript:{whackNPOV(XX);};void(0);',			'NPOV',				'toolbox_npov');
		whack_addToolboxLink(4, 'javascript:{whackPaid(XX);};void(0);',			'Paid',				'toolbox_paid');
		whack_addToolboxLink(4, 'javascript:{whackSpam(XX);};void(0);',			'Spam links',		'toolbox_spam');
		whack_addToolboxLink(2, 'javascript:{whackAxdate(XX);};void(0);',		'Access date',		'toolbox_axdate');
		whack_addToolboxLink(4, 'javascript:{whackBLP(XX);};void(0);',			'BLP',       		'toolbox_blp');
		whack_addToolboxLink(4, 'javascript:{whackDefa(XX);};void(0);',			'Defamation',		'toolbox_defa');
		whack_addToolboxLink(4, 'javascript:{whackErrors(XX);};void(0);',		'Errors',			'toolbox_errors');
		whack_addToolboxLink(4, 'javascript:{whackNOR(XX);};void(0);',			'O.R.',      		'toolbox_nor');
		whack_addToolboxLink(4, 'javascript:{whackUnsourced(XX);};void(0);',	'Unsourced',		'toolbox_unsourced');
		whack_addToolboxLink(4, 'javascript:{whackAfd(XX);};void(0);',			'AFD rem.',			'toolbox_afd');
		whack_addToolboxLink(4, 'javascript:{whackProdblp(XX);};void(0);',		'Prod blp rem.',	'toolbox_prodblp');
		whack_addToolboxLink(4, 'javascript:{whackCfd(XX);};void(0);',			'CFD rem.',			'toolbox_cfd');
		whack_addToolboxLink(4, 'javascript:{whackChat(XX);};void(0);',			'Chat in talk',		'toolbox_chat');
		whack_addToolboxLink(4, 'javascript:{whackColor(XX);};void(0);',		'Colors',			'toolbox_color');
		whack_addToolboxLink(4, 'javascript:{whackCreate(XX);};void(0);',		'Create',			'toolbox_create');
		whack_addToolboxLink(4, 'javascript:{whackFfd(XX);};void(0);',			'FFD rem.',			'toolbox_ffd');
		whack_addToolboxLink(4, 'javascript:{whackIcs(XX);};void(0);',			'ICS',				'toolbox_ics');
		whack_addToolboxLink(4, 'javascript:{whackIdt(XX);};void(0);',			'IDT',				'toolbox_idt');
		whack_addToolboxLink(4, 'javascript:{whackIslam(XX);};void(0);',		'Islam hon.',		'toolbox_islam');
		whack_addToolboxLink(4, 'javascript:{whackMfd(XX);};void(0);',			'MFD rem.',			'toolbox_mfd');
		whack_addToolboxLink(4, 'javascript:{whackMOS(XX);};void(0);',			'MOS',				'toolbox_mos');
		whack_addToolboxLink(4, 'javascript:{whackMove(XX);};void(0);',			'Move',				'toolbox_move');
		whack_addToolboxLink(4, 'javascript:{whackRedirect(XX);};void(0);',		'Redirect',			'toolbox_redirect');
		whack_addToolboxLink(4, 'javascript:{whackSpeedy(XX);};void(0);',		'CSD rem.',			'toolbox_speedy');
		whack_addToolboxLink(4, 'javascript:{whackTpv(XX);};void(0);',			'TPV',				'toolbox_tpv');
		whack_addToolboxLink(1, 'javascript:{whack2redirect(XX);};void(0);',	'2redirect',		'toolbox_2redirect');
		whack_addToolboxLink(1, 'javascript:{whackAfcadd(XX);};void(0);',		'Afc addition',		'toolbox_afcaddition');
		whack_addToolboxLink(1, 'javascript:{whackArchive(XX);};void(0);',		'Archive UT',		'toolbox_archive');
		whack_addToolboxLink(1, 'javascript:{whackAutobio(XX);};void(0);',		'Autobio',			'toolbox_autobio');
		whack_addToolboxLink(1, 'javascript:{whackBadliste(XX);};void(0);',		'Bad list entry',	'toolbox_badliste');
		whack_addToolboxLink(1, 'javascript:{whackBadpblp(XX);};void(0);',		'Bad prod blp',		'toolbox_badpblp');
		whack_addToolboxLink(1, 'javascript:{whackBiognot(XX);};void(0);',		'Bio not triv',		'toolbox_biognot');
		whack_addToolboxLink(1, 'javascript:{whackBlog(XX);};void(0);',			'Blogging/promo',	'toolbox_blog');
		whack_addToolboxLink(1, 'javascript:{whackCWW(XX);};void(0);',			'CWW',				'toolbox_cww');
		whack_addToolboxLink(1, 'javascript:{whackDate(XX);};void(0);',			'Date change',		'toolbox_date');
		whack_addToolboxLink(1, 'javascript:{whackTilde(XX);};void(0);',		'Pls sign!',		'toolbox_tilde');
		whack_addToolboxLink(1, 'javascript:{whackPreview(XX);};void(0);',		'Use preview',		'toolbox_preview');
		whack_addToolboxLink(1, 'javascript:{whackUpfirst(XX);};void(0);',		'Upload first',		'toolbox_upfirst');
		whack_addToolboxLink(1, 'javascript:{whackWronges(XX);};void(0);',		'Wrong E.S.',		'toolbox_wronges');
		whack_addToolboxLink(1, 'javascript:{whackAffil(XX);};void(0);',		'Affil. mark.',		'toolbox_affil');
	}
}
// onload
window.simpleAddOnload=function(f) {
	if (window.addEventListener) window.addEventListener("load", f, false);
	else if (window.attachEvent) window.attachEvent("onload",f);
}
simpleAddOnload(playWhackMoles);
// </nowiki></pre>