MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

// InfoWidgets $(document).ready(function {    if ($('#info-widgets').length) {        importScriptPage('InfoWidgets/code.js', 'dev');        window.widgetsLoaded = function  {            np = Widgets.newPages;            np.selector = '#new-pages';            Widgets.add(np);            rc = Widgets.recentChanges;            rc.selector = '#recent-changes';            Widgets.add(rc);            Widgets.add({ selector: '#new-files', type: 'api', params: { action: 'query', format: 'json', list: 'recentchanges', rclimit: 20, rcshow: '!redirect', rcprop: 'title', rcnamespace: 6 }           });         }    } }); // End InfoWidgets

InactiveUsers = { days: 45 }; importScriptPage('InactiveUsers/code.js', 'dev');