User:Rudi rider/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/tools.render/stools/articleMonitor/query/json/id/" +          wgArticleId + "/lang/" + wgContentLanguage + "/asqmid/7d6e68be?callback=?", function(data) {        var output = " ";        asqmReq = true;        $('#asqmContainer').html(closeButton + output);      }); } } else { $('#asqmContainer').css('visibility', 'hidden'); } }