User:Technical 13/SandBox/G11user.js

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.
/* delete userpage */
var deleteReason = '[[WP:CSD#G11|G11]]: Unambiguous [[WP:NOTADVERTISING|advertising]] or promotion';
$('#wpDeleteReasonList').find('option:contains(deleteReason)').prop("selected", true);
$('#wpWatch').prop("checked", false);// or set to true to make sure you always watch the page

/* block user */
var blockReason = '{'+'{Spamublock}'+'}';
$('#mw-input-wpExpiry').find('option:contains("indefinite")').prop("selected", true);
$('#mw-input-wpReason').find('option:contains(blockReason)').prop("selected", true);
$('#mw-input-wpCreateAccount').prop("checked", true);
$('#mw-input-wpDisableEmail').prop("checked", false);
$('#mw-input-wpDisableUTEdit').prop("checked", false);
$('#mw-input-wpAutoBlock').prop("checked", true);
$('#mw-input-wpWatch').prop("checked", true);
$('#mw-input-wpConfirm').prop("checked", true);

/* post block notice on talk */
var postContent = '{'+'{Uw-spamublock}'+'} ~~'+'~~';
/* api to post */