Difference between revisions 59944 and 59945 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 warn() { var txt = document.editform.wpTextbox1; var prefix = prompt("What is the prefix? Change if appropriate", "uw-") var type = prompt("Which standard warning do you wish to issue?", "test"); var severity = prompt("How severe is the violation?", "1"); var page = prompt("What page?"); var msgtext = "{{subst:"+prefix + type + severity + "|" + page + "|subst=subst:}} ~~~~"; if(page.length == 0) {page = "Wikisource"} else { page = "[["+page+"]]" }; var summary = "Your recent edits to " + page ; document.editform.wpSummary.value = summary; document.editform.wpMinoredit.checked = true; if(txt.value.length > 0) txt.value += '\n'; txt.value += msgtext; document.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=59945.
![]() ![]() 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.
|