User:Henstepl/common.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] = v;           } });       $('#mw-content-text [name="pages"]').val(arr.join('\n'));    } });

/* Thanks to User:KockaAdmiralac!*/