User:JPxG/AsbestosGun.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | Documentation for this user script can be added at User:JPxG/AsbestosGun. |
// 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
}
}
);