User:Fekepp/common.js

var asqmReq = false; var closeButton = ""; if (wgNamespaceNumber == 0) { $(' Article Monitor ' +   ' ').insertAfter("#ca-history"); } function asqm { if ($('#asqmContainer').css('visibility') == 'hidden') { $('#asqmContainer').css('visibility', 'visible'); if (!asqmReq) { $('#asqmContainer').html(''); $.getJSON("//tools.wmflabs.org/render/stools/articleMonitor/query/json/id/" +          wgArticleId + "/lang/" + wgContentLanguage + "/asqmid/4816acd2?callback=?", function(data) {        var output = " ";        asqmReq = true;        $('#asqmContainer').html(closeButton + output);      }); } } else { $('#asqmContainer').css('visibility', 'hidden'); } }