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

Content deleted Content added
fix query string functionality
actually fix the functionality
Line 1:
var contentContent = document.getElementById("bodyContent");
if (mw.config.get("wgCanonicalNamespace") == "Category" || mw.config.get("wgCanonicalNamespace") == "Category talk") {
mw.util.addPortletLink("p-tb", `/wiki/Special:MassCat?cat=${mw.config.get("wgPageName")};`, "Mass categorizer", "p-masscat", "Mass categorizer");
}
// Adapted from User:Ahecht/Scripts/massmove.js
Line 60:
<div id="wpMassCatFailedContainer"></div>
The name of the category:<br/>
<input type="text" id="wpMassCatName" name="wpMassCatName" value="${new URLSearchParams(window.___location.search).get("cat")}"/>
<br /><br />
Pages to add to the category (one on each line, please):<br />