MediaWiki:ExportURL.js

(function {   if (mw.config.get('wgCanonicalSpecialPageName') === 'Export') {        var regex = /^link(\d+)$/, arr = [];        $.each($.getUrlVars, function(k, v) { var match = k.match(regex); if (match) { arr[Number(match[1]) - 1] = decodeURIComponent(v); }       });        $('#mw-content-text [name="pages"]').val(arr.join('\n'));    } });