User:TheresNoTime/loader.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | Documentation for this user script can be added at User:TheresNoTime/loader. |
/*
* A better-er loader for my common.js, by [[User:Izno]] <3
*/
// Dev stuff
//'http://localhost:45991/redwarn.js');
//'http://127.0.0.1');
mw.loader.load('//tnt.toolforge.org/js/CheckUserHelper/CheckUserHelper.js');
// this could be a lambda if you really wanted
function load_script(script) {
mw.loader.load('/w/index.php?title=' + script + '&action=raw&ctype=text/javascript');
}
function load_scripts(scripts) {
scripts.forEach(load_script);
}
const all_spaces_scripts = [
'User:Anomie/linkclassifier.js', // Backlink: [[User:Anomie/linkclassifier.js]]
'User:The_Evil_IP_address/hdedit.js', // Backlink: [[User:The Evil IP address/hdedit.js]]
'User:Enterprisey/diff-permalink.js', // Backlink: [[User:Enterprisey/diff-permalink.js]]
'User:Mdaniels5757/markAdmins-core.js', // Backlink: [[User:Mdaniels5757/markAdmins-core.js]]
'User:MDanielsBot/markAdmins-Data.js', // Backlink: [[User:MDanielsBot/markAdmins-Data.js]]
'User:GeneralNotability/cumarkips.js', // Backlink: [[User:GeneralNotability/cumarkips.js]]
'User:GeneralNotability/ip-ext-info.js', // Backlink: [[User:GeneralNotability/ip-ext-info.js]]
'User:Ale_jrb/Scripts/userhist.js', // Backlink: [[User:Ale_jrb/Scripts/userhist.js]]
'User:The_Earwig/copyvios.js', // Backlink: [[User:The Earwig/copyvios.js]]
'User:Enterprisey/url-select-revdel.js', // Backlink: [[User:Enterprisey/url-select-revdel.js]]
'User:Enterprisey/cv-revdel.js', // Backlink: [[User:Enterprisey/cv-revdel.js]]
'User:The Earwig/revdel-responder.js', // Backlink: [[User:The Earwig/revdel-responder.js]]
'User:TheresNoTime/linkThings.js', // Backlink: [[User:TheresNoTime/linkThings.js]]
];
load_scripts(all_spaces_scripts);
// CSS everywhere
//mw.loader.load('/w/index.php?title=User:Giraffer/Themes/TurquoiseDark.css&action=raw&ctype=text/css', 'text/css'); // Backlink: [[User:Giraffer/Themes/TurquoiseDark.css]]
mw.loader.load('/w/index.php?title=User:Anomie/linkclassifier.css&action=raw&ctype=text/css', 'text/css'); // Backlink: [[User:Anomie/linkclassifier.css]]
// Mainspace/Draftspace
if( mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 118 ) {
const mainspace_scripts = [
'User:Evad37/MoveToDraft.js', // Backlink: [[User:Evad37/MoveToDraft.js]]
'User:Salix_alba/Citoid.js', // Backlink: [[User:Salix alba/Citoid.js]]
'User:Ohconfucius/script/MOSNUM dates.js', // Backlink: [[User:Ohconfucius/script/MOSNUM dates.js]]
'User:Wugapodes/Capricorn.js', // Backlink: [[User:Wugapodes/Capricorn.js]]
'User:Wurgl/WikiHistory.js', // Backlink: [[User:Wurgl/WikiHistory.js]]
'User:GorillaWarfare/script/curlies.js', // Backlink: [[User:GorillaWarfare/script/curlies.js]]
];
load_scripts(mainspace_scripts);
}
else {
const otherspace_scripts = [
'User:MusikAnimal/responseHelper.js', // Backlink: [[User:MusikAnimal/responseHelper.js]]
'User:Jackmcbarn/editProtectedHelper.js', // Backlink: [[User:Jackmcbarn/editProtectedHelper.js]]
'User:MusikAnimal/userRightsManager.js', // Backlink: [[User:MusikAnimal/userRightsManager.js]]
'User:Enterprisey/unblock-review.js', // Backlink: [[User:Enterprisey/unblock-review.js]]
'User:Enterprisey/easy-brfa.js', // Backlink: [[User:Enterprisey/easy-brfa.js]]
'User:DannyS712/DiscussionCloser.js', // Backlink: [[User:DannyS712/DiscussionCloser.js]]
'User:Beetstra/Gadget-Spam-blacklist-Handler.js', // Backlink: [[User:Beetstra/Gadget-Spam-blacklist-Handler.js]]
'User:TheresNoTime/Archiver.js', // Backlink: [[User:TheresNoTime/Archiver.js]]
'User:Writ_Keeper/Scripts/massRollback.js', // Backlink: [[User:Writ Keeper/Scripts/massRollback.js]]
'User:Enterprisey/falsePositiveHelper.js', // Backlink: [[User:Enterprisey/falsePositiveHelper.js]]
'User:Plastikspork/massmove.js', //[[User:Plastikspork/massmove.js]]
'User:GeneralNotability/spihelper-dev.js', // Backlink: [[User:GeneralNotability/spihelper-dev.js]]
'User:GeneralNotability/spurlookup.js', // Backlink: [[User:GeneralNotability/spurlookup.js]]
'User:GeneralNotability/InvestorGoat.js', // Backlink: [[User:GeneralNotability/InvestorGoat.js]]
'User:Amalthea/culoghelper.js', // Backlink: [[User:Amalthea/culoghelper.js]]
'User:Writ_Keeper/Scripts/cuStaleness.js', // Backlink: [[User:Writ Keeper/Scripts/cuStaleness.js]]
'User:Writ_Keeper/Scripts/sockStaleness.js', // Backlink: [[User:Writ Keeper/Scripts/sockStaleness.js]]
];
load_scripts(otherspace_scripts);
mw.util.addPortletLink("p-tb", "//en.wikipedia.org/wiki/Special:Massmove", "Mass move", "p-massmove", "Mass move"); // setting for User:Plastikspork/massmove.js
// Settings for User:Writ Keeper/Scripts/cuStaleness.js
maxUsersCUStaleness = 500;
lazyCheckCUStaleness = false;
}