Difference between revisions 59949 and 59950 on jawikisource

/*<pre>*/
function getElementsByClass(searchClass,node,tag) {
  // Function from http://www.dustindiaz.com/getelementsbyclass/
  var classElements = new Array();
  if ( node == null )
    node = document;
  if ( tag == null )
    tag = '*';
(contracted; show full)	}
	blockForm.submit();
}

function addblockoptions() {
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("1 week","荒らし")',
		'
vand荒らし',
		'p-block-vand');
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("infinite","荒らしアカウント")',
		'voa荒らしアカウント',
		'p-block-voa');
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("1 week","spam")',
		'spam',
		'p-block-spam');
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("infinite","spamアカウント")',
		'soapamアカウント',
		'p-block-soa');
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("infinite","spambot")',
		'spambot',
		'p-block-sbot');
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("infinite","不適切な利用者名")',
		'usoft不適切な利用者名',
		'p-block-usoft');
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("infinite","アカウント作成荒らし")',
		'uhardアカウント作成荒らし',
		'p-block-uhard');
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("infinite","パスワード公開")',
		'selfcパスワード公開',
		'p-block-selfc');
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("1 week","{{anonblock|1=}}<!--{{anonblock|1=|sig=--~~"+"~~}}-->")',
		'anonblock',
		'p-block-anon');
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("1 week","{{schoolblock|1=}}<!--{{schoolblock|1=|sig=--~~"+"~~}}-->")',
		'schoolblock',
		'p-block-school');
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("infinite","open proxy")',
		'open proxy',
		'p-block-op');
}
if ( wgCanonicalSpecialPageName == 'Block' )addOnloadHook(addblockoptions);
/*</pre>*/