In this article, User:Nardog/RefRenamer.js will be addressed from a broad and detailed perspective, in order to provide the reader with a complete vision of this topic/person/date. Various aspects related to User:Nardog/RefRenamer.js will be explored, with the purpose of providing relevant and updated information about it. Likewise, its implications, effects and consequences will be analyzed, with the aim of offering a comprehensive and enriching vision of User:Nardog/RefRenamer.js. Throughout this writing, different approaches and points of view will be appealed to, with the purpose of building as complete and diverse a panorama as possible about User:Nardog/RefRenamer.js.
mw.config.get('wgNamespaceNumber') % 2 === 0 &&
mw.config.get('wgArticleId') &&
mw.config.get('wgPageContentModel') === 'wikitext' &&
$.when($.ready, mw.loader.using('mediawiki.util')).then(function refRenamer() {
if (!document.getElementById('p-tb')) return;
let messages = Object.assign({
portlet: 'RefRenamer',
loading: 'Loading RefRenamer...'
}, window.refrenamerMessages);
let clicked;
mw.util.addPortletLink('p-tb', '#', messages.portlet, 't-refrenamer').firstElementChild.addEventListener('click', e => {
e.preventDefault();
if (clicked) {
if (window.refRenamer) window.refRenamer();
return;
}
clicked = true;
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/RefRenamer-core.js&action=raw&ctype=text/javascript');
mw.notify(messages.loading, {
autoHideSeconds: 'long',
tag: 'refrenamer'
});
});
});