Difference between revisions 55346 and 55348 on jawikisource

// 《ゆいしあすリバートシステムNG(NextGeneration)》
// ウィキソース日本語版専用
/*<pre>*/
function getElementsByClass(searchClass,node,tag) {
  // Function from http://www.dustindiaz.com/getelementsbyclass/
  var classElements = new Array();
  if ( node == null )
    node = document;
(contracted; show full)ource.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+'">(MIKI)</a> <a href="https://ja.wikisource.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&revert=6&user1='+user1+'&user2='+user2+'">(GRIMM)</a> <a href="https://ja.wikisource.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&revert=7&user1='+user1+'&user2='+user2+'">(ISECHIKA)</a> <a href="https://ja.wikisource.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&revert=8&user1='+user1+'&user2='+user2+'">(YOT)</a><a href="https://ja.wikisource.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&revert=9&user1='+user1+'&user2='+user2+'">(TU)</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 = '[[:w:LTA:MIKI]]/[[:n:LTA:MIKI]]';
    document.getElementById('wpMinoredit').checked = true;
    document.getElementById('editform').submit();
  } else if (location.href.match(/revert=6/)) {
    document.getElementById('wpSummary').value = '[[:w:LTA:GRIMM]]/[[:n:LTA:GRIMM]]';
    document.getElementById('wpMinoredit').checked = true;
    document.getElementById('editform').submit();
  } else if (location.href.match(/revert=7/)) {
    document.getElementById('wpSummary').value = '[[:w:LTA:ISECHIKA]]/[[:n:LTA:ISECHIKA]]';
    document.getElementById('wpMinoredit').checked = true;
    document.getElementById('editform').submit();
  } else if (location.href.match(/revert=8/)) {
    document.getElementById('wpSummary').value = '[[:w:LTA:YOT]]/[[:w:en:WP:WIKINGER]]/[[:w:zh:WP:WIKINGER]]';
    document.getElementById('wpMinoredit').checked = true;
    document.getElementById('editform').submit();
  } else if (location.href.match(/revert=9/)) {
    document.getElementById('wpSummary').value = '[[:w:LTA:TU]]([[:sulutil:闘莉王]]/[[:sulutil:おれ]])';
  } 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();
  }
});
/*</pre>*/