User:JJPMaster/Scripts/SuppressRedirect.js: Difference between revisions

Content deleted Content added
No edit summary
m JJPMaster moved page User:JJPMaster/SuppressRedirect.js to User:JJPMaster/Scripts/SuppressRedirect.js: cleaning up my userspace
 
(One intermediate revision by the same user not shown)
Line 13:
<select name="criterion" id="PMRcriterion">
<option>Select the criterion</option>
<option>Reverting page move vandalism ([[w:en:WP:PMRC#1]])</option>
<option>Moving pages within a requester's own userspace to another ___location if a desire for deletion is expressed ([[w:en:WP:PMRC#2]])</option>
<option>Moving pages from a title unambiguously created in error or in the incorrect namespace ([[w:en:WP:PMRC#3]])</option>
<option>Round-robin page move ([[w:en:WP:PMRC#4]]</option>
<option>File shadows Wikimedia Commons file ([[w:en:WP:PMRC#5]])</option>
<option>Moving from mainspace to other namespace ([[w:en:WP:PMRC#6]])</option>
<option>Moving recently created page from implausible title ([[w:en:WP:PMRC#7]])</option>
<option>Moving editnotice to subpage of [[Template:Editnotices]] ([[w:en:WP:PMRC#8]])</option>
<option>Redirect would meet a criterion for speedy deletion ([[w:en:WP:PMRC#9]])</option>
</select><br />
<input type="text" id="toMoveTitle" name="toMoveTitle" /><label for="toMoveTitle">The title the page will be moved to</label><br />
Line 34:
var critValue = document.getElementById("PMRcriterion").value;
var criterion;
if(critValue !== "Redirect would meet a criterion for speedy deletion ([[w:en:WP:PMRC#9]])")
criterion = critValue;
else {
var innerCrit = prompt("What criterion?");
if(innerCrit)
criterion = `Redirect would meet criterion [[WP:CSD#${innerCrit.toUpperCase()}|${innerCrit.toUpperCase()}]] for speedy deletion ([[w:en:WP:PMRC#9]])`;
else criterion = critValue;
}