Jump to content

User:JPxG/AsbestosGun.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// Never use this unless you have to.
// Shittiest script ever.

// Across the river Styx, out of the lamplight
// His enemy is waiting at the gate
// The Snow Dog, ermine glowing in the dark night
// His coal-black eyes shimmering with hate...

// - JPxG, 2024 January 06

function fillBan() {
	document.getElementsByClassName("oo-ui-inputWidget-input")[6].checked = true; // Block account creation
	document.getElementsByClassName("oo-ui-inputWidget-input")[7].checked = true; // Block user from sending email
	document.getElementsByClassName("oo-ui-inputWidget-input")[8].checked = true; // Prevent this user from editing their own talk page while blocked
	document.getElementsByClassName("oo-ui-inputWidget-input")[11].value = "indefinite"
	document.getElementsByClassName("oo-ui-inputWidget-input")[13].value = "[[Wikipedia:Long-term abuse|Long-term abuse]]"
    setTimeout(function(){document.getElementsByClassName("oo-ui-inputWidget-input")[17].click();}, 200);
}

addOnloadHook(function() {
	if (document.getElementById("firstHeading").textContent == "Block user") {
		document.title = "!" + document.title
		mw.util.addPortletLink("p-tb", "javascript:fillBan()", "ASBESTOS-GUN ASBESTOS-GUN ASBESTOS-GUN ASBESTOS-GUN ASBESTOS-GUN ASBESTOS-GUN ASBESTOS-GUN ASBESTOS-GUN ASBESTOS-GUN ASBESTOS-GUN ASBESTOS-GUN", "ca-asbestos", "SHOOT ASBESTOS (fill LTA indef fields)", "");
		}
	if (document.getElementById("firstHeading").textContent == "Block successful") {
		document.title = "---" + document.title
		}
	}
);