Jump to content

User:Slowking Man/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
scriptsToManage = {

// Backlink: [[User:Enterprisey/archiver.js]]
"User:Enterprisey/archiver.js"  : 
"//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&\
title=User:Enterprisey/archiver.js" ,

// Backlink: [[User:Wugapodes/Capricorn.js]]
"User:Wugapodes/Capricorn.js"  : 
"//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&\
title=User:Wugapodes/Capricorn.js" ,

};

// create a user defined object
var myLintHints = { };

// specify some object component
myLintHints.rooms = "*";

// communicate user defined object
mw.hook( "lintHint.config" ).fire( myLintHints );

( () => {

'use strict';

const myScripts = [

// Backlink: [[User:Trappist the monk/HarvErrors.js]]
"User:Trappist the monk/HarvErrors.js" ,

// Backlink: [[User:PrimeHunter/Source links.js]]
'User:PrimeHunter/Source links.js' ,

// Backlink: [[User:PrimeHunter/Where links this.js]]
'User:PrimeHunter/Where links this.js' ,

// Backlink: [[User:PerfektesChaos/js/lintHint/r.js]]
'User:PerfektesChaos/js/lintHint/r.js' ,

// Backlink: [[User:Magnus Manske/intercat.js]]
'User:Magnus Manske/intercat.js' ,

// Linkback: [[User:Odie5533/SnipManager.user.js]]
'User:Odie5533/SnipManager.user.js' ,

// Linkback: [[User:Kaniivel/RefConsolidate_start.js]]
'User:Kaniivel/RefConsolidate_start.js' ,

// Linkback: [[User:Ohconfucius/script/Sources.js]]
'User:Ohconfucius/script/Sources.js' ,

// Linkback: [[User:Salix alba/Citoid.js]]
'User:Salix alba/Citoid.js' ,

// Linkback: [[MediaWiki:Gadget-MoreMenu.enwiki.js]]
'MediaWiki:Gadget-MoreMenu.enwiki.js' ,

'User:Slowking_Man/scripts/FatFingerTrap.js' ,

'User:Slowking Man/scripts/ReallyComplete.js' ,
];

// finally, load scripts
const loadPath = '//en.wikipedia.org/w/index.php?action=raw&maxage=86400\
&bcache=1&ctype=text/javascript&title=' ;

const myModules = [ 'mediawiki.api' , 'mediawiki.util' , ];
const myCallBack = () => myScripts.forEach(
	scr => mw.loader.load( loadPath + scr.replaceAll( ' ', '_' ) ) );

mw.loader.using( myModules , myCallBack ) ;
return;
} )();