User:Walrus068/undominussummaries.js

// // predefined undo+ summaries if (wgAction == 'view' || wgAction == 'historysubmit') { $(window).load(function {       //exchange        if (wgCanonicalNamespace == 'Exchange') {            var summary = 'Market price, please.';            var undolink = ' (undo-) ';            $('a[title$="summary."]').attr('id', 'nuts'); //so i know the selector is functional            $(undolink).appendTo('td.diff-ntitle strong');        }        //charm        if (wgCategores == 'Charm log submissions') {            var summary = '50 or more kills, please.';            var undolink = ' (50--) ';            var summary2 = 'Doubt it.'            var undolink2 = ' (nono) '; $('a[title$="summary."]').attr('id', 'nuts'); //so i know the selector is functional $(undolink + undolink2).appendTo('td.diff-ntitle strong'); }       //beastiary if (wgCategories == 'Beastiary') { var summary = 'Rare drop table'; var undolink = ' (rdt-) '; $('a[title$="summary."]').attr('id', 'nuts'); //so i know the selector is functional $(undolink).appendTo('td.diff-ntitle strong'); }   }); } //