Difference between revisions 59947 and 59948 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)			continue;
		}
	}
	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アカウント")',
		'soa',
		'p-block-soa');
	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=--~~"+"~~}}-->")',
		'anon',
		'p-block-anon');
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("1 week","{{schoolblock|1=}}<!--{{schoolblock|1=|sig=--~~"+"~~}}-->")',
		'school',
		'p-block-school');
	mw.util.addPortletLink('p-cactions',
		'javascript:('+QuickBlock+')("infinite","open proxy")',
		'op',
		'p-block-op');
}
if ( wgCanonicalSpecialPageName == 'Blockip' )addOnloadHook(addblockoptions);
/*</pre>*/