User:Speeditwo/global.js

// JWB. mw.loader.using('mediawiki.Title').then(function {   var jwbPath = new mw.Title('AutoWikiBrowser/Script', 4).getUrl,        curPath = new mw.Uri.path;

if (jwbPath === curPath) {

mw.loader.load('mediawiki.action.history.diff'); $('link[href*="modules=user"]').prop('disabled', 'true'); importScriptPage('User:Joeytje50/JWB.js/load.js', 'https://en.wikipedia.org/w');

} else {

importScriptURI('/load.php?debug=false&lang=en&modules=user&only=scripts&skin=oasis&user=Speedit&*');

if (mw.config.get('wgUserGroups').indexOf('bot') !== -1) { $('', {               append: $('', { 'href': new mw.Title('AutoWikiBrowser/Script', 4).getUrl, text: 'JWB' })           }).prependTo('.wds-global-navigation__user-menu .wds-list');

}

} });