User:Krd/monobook.js

$(function { var $deletions = mw.util.$content.find('li.mw-logline-delete'); if (!$deletions.length) {   return; } var cdLink = $('', { 'class' : 'delinker-log-link extiw' }).append('delinker log'); var span = $(' ', { 'class' : 'delinker-log-links' }).append(' (').append(cdLink).append(')'); $deletions.each (function { $match = $( this ).find('a'); if ( $match.length ) { var filename = $match.text.substring(5).replace(/ /g,'_'); cdLink.attr('href', '//tools.wmflabs.org/krdbot/cgi-bin/Dateientlinkerlog.pl?file=' + filename); cdLink.attr('title', 'Dateientlinkerbot log für ' + filename); $( this ).append( span.clone ); } }); });