XTools/ArticleInfo.js

/** * This code was automatically generated and should not be manually edited. * For updates, please copy and paste from https://xtools.wmflabs.org/articleinfo-gadget.js?uglify=1 * Released under GPL v3 license. */ $(function{if(mw.config.get("wgArticleId")===0||mw.config.get("wgCurRevisionId")!==mw.config.get("wgRevisionId")||mw.config.get("wgAction")!=="view"){return}var t=". ";$(t).insertBefore("#contentSub");var e=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("wgUserLanguage")).done(function(t){$("#xtools_result").html(t);clearInterval(e)})});