User:DannyS712/import.js

// /* globals $, mw, OO, Set, Promise */ $( => { const FakeImport = {}; window.FakeImport = FakeImport;

FakeImport.start = function { console.log( 'Started' ); var $div = $(" "); $('#mw-content-text').empty.append( $div ); var $interwiki = $(" "); $div.append( $interwiki ); var transwikiSources = new OO.ui.DropdownInputWidget( {		text: 'import-interwiki-sourcewiki',		options: [			{ data: 'meta', label: 'meta' } ,			{ data: 'commons', label: 'commons'} ,			{ data: 'wikipedia', label: 'wikipedia' }		]	} ); var transwikiTitle = new OO.ui.TextInputWidget({		label: 'import-interwiki-sourcepage'	}); $interwiki.append(		transwikiSources.$element,		transwikiTitle.$element	); }; });

mw.loader.using([ 'oojs-ui-core', 'oojs-ui-widgets' ], => {	$(document).ready( => { if (mw.config.get('wgNamespaceNumber') === -1) { if (mw.config.get('wgCanonicalSpecialPageName') === 'Blankpage') { const page2 = mw.config.get('wgTitle').split('/'); if (page2[1] && page2[1] === 'FakeImport') { FakeImport.start; }			}		}	}); });

//