User:MusikAnimal/common.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 e=". ",t=$("#xtools_result");$(e).insertBefore("#contentSub");var n=window.setInterval(function{if(t.html===".  "){t.html(" . ")}else if(t.html===" . "){t.html("  .")}else{t.html(".  ")}},300);$.get("https://xtools.wmflabs.org/api/page/articleinfo/"+mw.config.get("wgServerName")+"/"+encodeURIComponent(mw.config.get("wgPageName"))+"?format=html"+"&uselang="+mw.config.get("wgUserLanguage")).done(function(e){t.html(e);clearInterval(n)})});