After talking with Rillke, we ended up discussing the idea of integrating problem reporting bugs like has been done with
[[commons:MediaWiki:Gadget-AjaxQuickDelete.js]]:
if (!this.disableReport) { dlgButtons[this.i18n.reportButtonLabel] = function() { $('#feedbackContainer').contents().remove(); $('#feedbackContainer').append($('<img>', { src: '.../images/ajax-loader.gif' })).css('text-align', 'center'); var randomId = Math.round(Math.random()*1099511627776); var toSend = '\n== Autoreport by AjaxQuickDelete ' + randomId + ' ==\n' + err + '\n++++\n:Task: ' + o.currentTask + '\n:NextTask: ' + o.tasks[0] + '\n:LastTask: ' + o.tasks[o.tasks.length - 1] + '\n:Page: ' + (o.pageName || pageName) + '\n:Skin: ' + mw.user.options.get('skin') + '\n:[{{fullurl:Special:Contributions|target={{subst:urlencode:' + '{{subst:REVISIONUSER}}}}&offset={{subst:REVISIONTIMESTAMP}}}}' + ' Contribs before error]'; $.post(o.apiURL, { 'action': 'edit', 'format': 'json', 'title': 'MediaWiki talk:AjaxQuickDelete.js/auto-errors', 'summary': '[[#Autoreport by AjaxQuickDelete ' + randomId + '|Reporting an AjaxQuickDelete error.]] Random ID=' + randomId, 'appendtext': toSend, 'token': (o.edittoken || mw.user.tokens.get('editToken')) }, function() { o.reloadPage(); }); }; }
Version: unspecified
Severity: normal