User:Leslie1289/global.js

//

importArticles({   type: 'script',    articles: [        // https://dev.fandom.com/wiki/AnalyticsShortcut        'u:dev:MediaWiki:AnalyticsShortcut.js',        // https://dev.fandom.com/wiki/UploadMultipleFiles        'u:dev:MediaWiki:UploadMultipleFiles.js',        // https://dev.fandom.com/wiki/View_Raw        'u:dev:MediaWiki:View_Raw/code.js',        // https://dev.fandom.com/wiki/JWB        // 'u:dev:MediaWiki:JWB/load.js',    ] });

// https://en.wikipedia.org/wiki/User:Joeytje50/JWB mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');

(function {   'use strict';    if ( window.commonJs ) {        return;    }    window.commonJs = true;

if ( $('a[data-tracking="awbscript"]').length ) return; mw.loader.using('mediawiki.util').then(function {       mw.hook('dev.fetch').add(function (fetch) { $('.wiki-tools').each(function(_, el) {               var $tool = $(el).find('[data-tracking="recent-changes"]');                $tool                    .clone                    .attr({ href: mw.config.get('wgArticlePath').replace('$1', "Project:AutoWikiBrowser/Script"), title: 'JS Wiki Browser', 'data-tracking': 'awbscript' }).insertAfter($tool)                   .find('svg')                    .html(' ');            }); });   });    importArticle({        type: 'script',        article: 'u:dev:MediaWiki:Fetch.js'    });

});

// if (mw.config.get('wgCanonicalNamespace')+':'+mw.config.get('wgTitle') === 'Project:AutoWikiBrowser/Script' && mw.config.get('wgAction') == 'view')