User:Prtksxna/block.js

// 1. Find your common.js //       https://mediawiki.org/wiki/Special:MyPage/common.js // 2. Add the following code to it: //       mw.loader.load('/w/index.php?title=User:Prtksxna/block.js&action=raw&ctype=text/javascript'); // 3. Go to Special:BlankPage (that is where we'll load the form) //       https://www.mediawiki.org/wiki/Special:BlankPage // 4. ??? // 5. PROFIT!

mw.loader.using( ['oojs', 'oojs-ui-core', 'oojs-ui-widgets'], function {	if ( window.location.pathname === "/wiki/Special:BlankPage") {		updateTitle;		makeForm;	} });

function updateTitle { $('#firstHeading').text( 'Block user' ); }

function makeForm { console.log('makeform'); }