Difference between revisions 59951 and 59952 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) document.getElementById('editform').submit(); } else if (location.href.match(/revert=5/)) { document.getElementById('wpSummary').value = '砂場ならし'; document.getElementById('wpMinoredit').checked = true; document.getElementById('editform').submit(); } }); /*</pre>*/ ⏎ ⏎ /*</pre>*/ function QuickBlock (blockOther,blockReason) { blockForm = document.getElementById('block'); inputs = blockForm.getElementsByTagName('input'); for (i=0; i<inputs.length; i++) { if (inputs[i].name == 'wpBlockOther') { inputs[i].value = blockOther; continue; } if (inputs[i].name == 'wpBlockReason') { inputs[i].value = blockReason; continue; } } blockForm.submit(); } function addblockoptions() { mw.util.addPortletLink('p-cactions', 'javascript:('+QuickBlock+')("1 week","荒らし")', '荒らし', 'p-block-vand'); mw.util.addPortletLink('p-cactions', 'javascript:('+QuickBlock+')("infinite","荒らしアカウント")', '荒らしアカウント', '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アカウント")', 'spamアカウント', 'p-block-soa'); mw.util.addPortletLink('p-cactions', 'javascript:('+QuickBlock+')("infinite","不適切な利用者名")', '不適切な利用者名', 'p-block-usoft'); mw.util.addPortletLink('p-cactions', 'javascript:('+QuickBlock+')("infinite","アカウント作成荒らし")', 'アカウント作成荒らし', 'p-block-uhard'); mw.util.addPortletLink('p-cactions', 'javascript:('+QuickBlock+')("infinite","パスワード公開")', 'パスワード公開', 'p-block-selfc'); mw.util.addPortletLink('p-cactions', 'javascript:('+QuickBlock+')("1 week","{{anon"+"block|1=}}<!--{{anon"+"block|1=|sig=--~~"+"~~}}-->")', 'anonblock', 'p-block-anon'); mw.util.addPortletLink('p-cactions', 'javascript:('+QuickBlock+')("1 week","{{school"+"block|1=}}<!--{{school"+"block|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>*/ All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://ja.wikisource.org/w/index.php?diff=prev&oldid=59952.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|