In this article, the topic of
User:Bradv/endlesscontribs.js will be addressed from different perspectives and angles, with the purpose of providing a broad and complete vision of this topic.
User:Bradv/endlesscontribs.js is a topic of great relevance and interest today, and its study and impact covers numerous areas of knowledge. Throughout this article, different aspects related to
User:Bradv/endlesscontribs.js, its implications, possible solutions, and its influence on current society will be analyzed. Data, case studies, and opinions of experts on the subject will be presented, with the aim of providing a detailed and rigorous overview of this issue. Don't miss this complete review on
User:Bradv/endlesscontribs.js!
(function( $, mw ) {
'use strict';
if (mw.config.get('wgCanonicalSpecialPageName')==='Contributions') {
mw.loader.using("mediawiki.util").then(function () {
const css = mw.util.addCSS(`
body.endlesscontribs .mw-pager-navigation-bar:not(:first-of-type) {
display: none;
}
#endlesscontribs {
margin: 1em;
}
`)
var nexturl = $('a').attr('href');
if (nexturl) {
var loading = false;
const button = $('<span>', {
'id': 'endlesscontribs',
'class': 'mw-ui-button mw-ui-progressive'})
.text('Load more')
.insertAfter($('.mw-pager-body'))
.click(function () {
$('body').addClass('endlesscontribs');
if (!loading) {
loading = true;
$.get(nexturl, function(data) {
var $html = $(data);
const $ul = $('.mw-contributions-list');
const $newul = $html.find('.mw-contributions-list > li');
$newul.each(function (index, element) {
$ul.append($(element));
})
nexturl = $html.find('a').attr('href');
if (!nexturl) {
button.remove();
}
loading = false;
})
}
});
}
});
}
}(jQuery, mediaWiki ));