Difference between revisions 55493 and 59937 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) var user2 = getElementsByClass('diff-ntitle',null,'td'); user2 = user2[0].getElementsByTagName('a')[3].innerHTML; document.getElementById('contentSub').innerHTML = '<a href="https://ja.wikisource.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&revert=1&user1='+user1+'&user2='+user2+'"> ((rv))</a> <a href="https://ja.wikisource.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&revert=2&user1='+user1+'&user2='+user2+'">((rvv))</a> <a href="https://ja.wikisource.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&revert=3&user1='+user1+'&user2='+user2+'">((spam))</a> <a href="https://ja.wikisource.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&revert=4&user1='+user1+'&user2='+user2+'">((ooooops!!))</a> <a href="https://ja.wikisource.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&revert=5&user1='+user1+'&user2='+user2+'">(サンドボックス初期化)</a>'; } else if (location.href.match(/revert=1/)) { document.getElementById('wpSummary').value = 'rv'; document.getElementById('wpMinoredit').checked = true; document.getElementById('editform').submit(); } else if (location.href.match(/revert=2/)) { document.getElementById('wpSummary').value = 'rvv'; document.getElementById('wpMinoredit').checked = true; document.getElementById('editform').submit(); } else if (location.href.match(/revert=3/)) { document.getElementById('wpSummary').value = 'spam'; document.getElementById('wpMinoredit').checked = true; document.getElementById('editform').submit(); } else if (location.href.match(/revert=4/)) { document.getElementById('wpSummary').value = 'ooooops!!'; document.getElementById('wpMinoredit').checked = true; 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>*/ 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=59937.
![]() ![]() 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.
|