User:Technical 13/Scripts/NoThanks.js

/* History pages */

if (mw.config.get('wgAction') === 'history') {

$('li').each(function () {

var $elem = $(this);

$elem.children('a.mw-thanks-thank-link').replaceWith('-⊗-');

// For history pages with undo links (or some other link)

// $elem.html($elem.html().replace(' | -⊗-', ''));

// For history pages with no other links

// if ($elem.children('span.comment').html().length == 0){

// $elem.children('span.mw-changeslist-separator:last').replaceWith('-⊗-');

// $elem.html($elem.html().replace(' -⊗- ', ''));

// }

// $elem.html($elem.html().replace(' (-⊗-)', ''));

});

/* Diff pages */

} else { // Haven't found what is the special setting for viewing diffs yet...

$('a.mw-thanks-thank-link').replaceWith('-⊗-');

var html = $('div#mw-diff-ntitle1').html();

if(html) {

$('div#mw-diff-ntitle1').html(html.replace(' (-⊗-)', ''));

}

}