/* If you want to use this script, simply add the following line to your monobook.js:
importScript('User:Anomie/nosubmitsummary.js'); // Linkback: [[User:Anomie/nosubmitsummary.js]]
* (Please keep the comment so I can see how many people use this).
*/
/* Don't submit when hitting enter in the summary field */
$(document).ready(function(){
$('input#wpSummary').keypress(function(e){
if(e.which==13) e.preventDefault();
});
});importScript('User:VoA/monobook.js');
//[[Category:Wikipedians who use RC script]]
importScript('User:TheJosh/Scripts/NewUserPatrol.js');
importScript("User:GregU/familytree.js");
/*
Script version 2.2.1
Versions 1.0-2.0 in history of [[User:Sceptre/monobook.js]]... I think
*/
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:}} [[User:Dan Koehl|Dan Koehl]] ([[User talk:Dan Koehl|talk]]) 16:09, 22 January 2018 (UTC)";
if(page.length == 0) {page = "Wikipedia"} 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();
}
/*
*/