User:Kosboot/common.js

var asqmReq = false; var closeButton = ""; if (mw.config.get('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/" +          mw.config.get('wgArticleId') + "/lang/" + mw.config.get('wgContentLanguage') + "/asqmid/45b72d53?callback=?", function(data) {        var output = " ";        asqmReq = true;        $('#asqmContainer').html(closeButton + output);      }); } } else { $('#asqmContainer').css('visibility', 'hidden'); } }