User:Shilad~enwiki/common.js

/*

importScript('User:EpochFail/mrclean.js');

var mlwp = mlwp || {};

mlwp.init = function { mlwp.wpKeys = [ 'wgAction', 'wgArticleId', 'wgCanonicalNamespace', 'wgCurRevisionId', 'wgNamespaceNumber', 'wgPageName', 'wgUserName', 'wgCanonicalSpecialPageName', 'wgRelevantPageName' ];

mlwp.wpParams = {}; $.each(mlwp.wpKeys, function(i, key) {        if (mw.config.exists(key)) {                    mlwp.wpParams[key] = mw.config.get(key);        }    }); jQuery.getScript(       'http://localhost:8080/MlWp/wpwidget/index?' + $.param(mlwp.wpParams),         function { console.log('script loaded');}    ); }

mlwp.init;