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

Content deleted Content added
No edit summary
No edit summary
Line 4:
}
$(() => {
var porty = mw.util.addPortletLink('p-cactions', '#', 'Suppress redirect', 'pt-supp', 'Move and suppress the redirect');
ad = "(using [[User:JJPMaster/SuppressRedirect|SuppressRedirect]])";
$("#bodyContent").append(`
<div id="suppressRedirectDialog">
Line 25 ⟶ 27:
</div>
`);
$("#suppressRedirectDialog").dialoghide();
$(porty).click($("#suppressRedirectDialog").dialog());
$("#moveForReal").click(function() {
var critValue = document.getElementById("PMRcriterion").value;
Line 41 ⟶ 44:
from: mw.config.get("wgPageName"),
to: document.getElementById("toMoveTitle").value,
reason: criterion + " " + ad,
movetalk: checkToBoolean(document.getElementById("moveTalk").value),
movesubpages: checkToBoolean(document.getElementById("moveSubpages").value),