In today's world,
User:DannyS712/ExpandHistory.js has become a topic of great relevance and debate. Its impact covers various areas of society, from politics to popular culture. As time progresses,
User:DannyS712/ExpandHistory.js continues to be a topic of interest and analysis for experts and the general public. In this article, we will explore different aspects related to
User:DannyS712/ExpandHistory.js, from its origins to its influence on everyday life. In addition, we will examine the different perspectives and opinions around
User:DannyS712/ExpandHistory.js, with the aim of offering a comprehensive and complete view on this topic of global importance.
// Install the newest version with:
// <code><nowiki> {{subst:Iusc|User:DannyS712/ExpandHistory.js}} </nowiki></code>
// or with
// <code><nowiki> importScript( 'User:DannyS712/ExpandHistory.js' ); // Backlink: ] </nowiki></code>
//
// If forking this script, please note my contributions / give me credit
$(function (){
var ExpandHistory_config = {
name: ']',
version: 1.0,
debug: false
};
mw.loader.using( 'mediawiki.util', function () {
$(document).ready( function () {
var action = mw.config.get('wgAction');
if (action && action === 'history'){
ExpandHistory();
}
} );
} );
function ExpandHistory(){
var links = $('a:textEquals("500")');
var thousand;
if (ExpandHistory_config.debug) console.log( links );
links.each( function() {
thousand = $(this).clone();
thousand.href = thousand.href.replace(/limit=500/, 'limit=1000');
thousand.textContent = '1000';
thousand = thousand;
this.after( thousand );
this.after( ' | ' );
});
}
// Attribution: copied from https://stackoverflow.com/questions/6673777/select-link-by-text-exact-match#
$.expr.textEquals = function(a, i, m) {
return $(a).text().match("^" + m + "$");
};
});