User:Ajepbah/common.js

var asqmReq = false; if (mw.config.get('wgNamespaceNumber') == 0) { $(' ASQM ' +  ' ').insertAfter("#ca-history"); } function asqm { if ($('#asqmContainer').css('visibility') == 'hidden') { $('#asqmContainer').css('visibility', 'visible'); if (!asqmReq) { $('#asqmContainer').html(''); $.getJSON("http://toolserver.org/~render/stools/asqm/query/json/id/" +          mw.config.get('wgArticleId') + "/lang/" + mw.config.get('wgPageContentLanguage') + "/asqmid/03883873?callback=?", function(data) {        var output = " ";        asqmReq = true;        $('#asqmContainer').html(output);      }); } } else { $('#asqmContainer').css('visibility', 'hidden'); } }