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

Content deleted Content added
obj --> func
change alert to confirm
Line 21:
 
function massCatPrepare(e) {
alert("Your articles are these, right?\n" + massCatGetArticles());
alert(`And you're adding them to ${massCatGetCat()}, right?`);
e.preventDefault();
alertvar MCarts = confirm("Your articles are these, right?\n" + massCatGetArticles());
alertvar MCcat = confirm(`And you're adding them to ${massCatGetCat()}, right?`);
if (MCarts && MCcat) alert("Success");
}
 
Line 29 ⟶ 30:
if(mw.config.get("wgPageName").toLowerCase() == "special:masscat") {
document.getElementById("firstHeading").innerText = "Mass categorizer";
// Adapted from [[User:Ahecht/Scripts/massmove.js]]
contentContent.innerHTML = `<form id="wpMassCat" name="wpMassCat">
<b>If you abuse this tool, it\'s <i>your</i> fault, not mine.</b>