User:SilverLocust/CombineMovePrefix.js

var combineMovePrefix = {}; combineMovePrefix.do = function { combineMovePrefix.NS = $('#wpNewTitleNs select option[value='+$('#wpNewTitleNs select')[0].value+']')[0].innerText; combineMovePrefix.title = $('#wpNewTitleMain input')[0].value; if ( combineMovePrefix.NS != '(Article)') { $('#wpNewTitleMain input')[0].value = combineMovePrefix.NS+':'+combineMovePrefix.title ; }	$('#wpNewTitleNs select')[0].value = '0'; $('#wpNewTitleNs select option[value='+$('#wpNewTitleNs select')[0].value+']')[0].innerText = '(Article)'; };

if ( mw.config.get('wgNamespaceNumber') == -1 && mw.config.get('wgCanonicalSpecialPageName') == 'Movepage' ) { combineMovePrefix.do; }