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

Content deleted Content added
No edit summary
try this method
Line 21:
 
$(function() {
document.getElementById("wpMassCat").onsubmit = massCatPrepare();
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" onsumbit="alert('hi!')">
<b>If you abuse this tool, it\'s <i>your</i> fault, not mine.</b>
<div id="wpMassCatFailedContainer"></div>
Line 34:
</form>`;
 
document.getElementById("wpMassCat").onsubmit =addEventListener("submit", massCatPrepare());
}
});