User:Walrus068/global.js

//undominus if (wgAction.match(/view|history(submit|)/)) { $(function undominuslink {       $(' (undo-) ').appendTo('div#mw-diff-ntitle1 strong, ul#pagehistory li:eq(0)').click(function { var summary = window.prompt('Undo summary:', ''); $('a#undominus').attr('href', $('div#mw-diff-ntitle1 strong a:eq(2), li:eq(0) span.mw-history-undo a').attr('href') + '&undominus=yes&summary=' + summary.replace(/ /g, '_')); });   }); } if (window.location.href.match(/&undominus=yes/g)) { $(function undominusexec {       if ($('input#wpSummary').val.match(/Und(o|id)/)) {            $('input#wpSummary').val($('input#wpSummary').val + ' ' + location.href.match(/&summary=(.*)/)[1]);        }        else {            $('input#wpSummary').val(location.href.match(/&summary=(.*)/)[1]);        }        $('input#wpSave').click;    }); }