User:Void/createWikiNotify.js

if( mw.config.get('wgPageName') === 'Special:CreateWiki' ) { mw.loader.using( ['oojs-ui'] ).done( function {		var submit = new OO.ui.ButtonWidget({ label: 'Submit' });		var customCBox = new OO.ui.CheckboxInputWidget({ selected: $("#mw-input-cwDBname")[0].childNodes[0].value ? false : true });		var fieldset = new OO.ui.FieldsetLayout( { } );		fieldset.addItems( [ new OO.ui.FieldLayout( custom, {label: 'Mark this wiki as needing a custom domain', align: 'inline'} ) ] );		$('div.mw-htmlform-submit-buttons').replaceWith(submit.$element);		$('#mw-input-cwDBname').after(fieldset.$element);		submit.click(function{ var dbname = $("#mw-input-cwDBname")[0].childNodes[0].value; var requester = $("#mw-input-cwRequester")[0].childNodes[0].value; var lang = $("#mw-input-cwLanguage")[0].childNodes[0].value; var custom = customCBox.isSelected; console.log(dbname + " " + requester + " " + lang); var suffix = lang; if( suffix === 'en' ) { suffix = ""; }		});	} ); }