User:Krd/common.js
< User:Krd
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin is at User:Krd/common.css. |
mw.loader.using('mediawiki.util').done(function () {
//importScript('User:ZooFari/licensereviewer.js');
//importScript('User:Magog the Ogre/cleanup.js');
$(function () {
var $deletions = $('li.mw-logline-delete');
if (!$deletions.length) {
return;
}
var cdLink = $('<a>', {
'class': 'delinker-log-link extiw'
}).append('delinker log');
var span = $('<span>', {
'class': 'delinker-log-links'
}).append(' (').append(cdLink).append(')');
$deletions.each(function () {
$match = $(this).find('a[title^="File:"]');
if ($match.length) {
var filename = $match.text().substring(5).replace(/ /g, '_');
cdLink.attr('href', 'https://alterkeks.gulu.net/bin/Delinkerlog.pl?file=' + filename);
cdLink.attr('title', 'Delinker log: ' + filename);
$(this).append(span.clone());
}
});
});
});
window.delReqReason = "per nomination.";
window.keepReqReason = "per discussion.";
window.delReqGlobalUsage = 1;
window.markAdminCfg = {
groups: {
'vrt-permissions': { enabled: true }
}
};
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Ladsgroup/CheckUserHelper.js&action=raw&ctype=text/javascript');
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Krd/DeleteLink.js&action=raw&ctype=text/javascript');