In this article, we will explore the topic of
User:MusikAnimal/xtools.js in depth. From its origins to its relevance today, we will put under the magnifying glass all aspects related to
User:MusikAnimal/xtools.js. Our goal is to offer our readers a complete and detailed view of this topic, providing invaluable information that allows them to better understand its importance and impact in various areas. Through an exhaustive analysis and the presentation of relevant data, we are going to delve into
User:MusikAnimal/xtools.js to unravel its implications and its scope in different contexts. Without a doubt,
User:MusikAnimal/xtools.js is a highly relevant topic that deserves careful examination, and that is precisely what we will do in the following pages. So get ready to embark on a fascinating journey through
User:MusikAnimal/xtools.js.
$(function () {
if (mw.config.get('wgArticleId') === 0 || // no deleted articles, no special pages
mw.config.get('wgCurRevisionId') !== mw.config.get('wgRevisionId') || // only current revision
mw.config.get('wgAction') !== 'view') { // only when viewing a page, not editing
return;
}
var markup = "<div id='xtools' style='font-size:84%; line-height:1.2em;" +
"width:auto;'><span id='xtools_result'>.</span></div>";
$(markup).insertBefore('#contentSub');
var loadinganimation = window.setInterval(function () {
if ($('#xtools_result').html() === '. ') {
$('#xtools_result').html(' . ');
} else if ($('#xtools_result').html() === ' . ') {
$('#xtools_result').html(' .');
} else {
$('#xtools_result').html('. ');
}
}, 300);
$.get(
'//xtools.wmflabs.org/api/articleinfo/' +
mw.config.get('wgServerName') + '/' +
mw.config.get('wgPageName') + '?format=html' +
'&uselang=' + mw.config.get('wgContentLanguage')
).done(function (result) {
$('#xtools_result').html(result);
clearInterval(loadinganimation);
});
});