User:Sophiedp/global.js

/* AdvancedOasisUI settings */ window.AdvancedOasisUI = { accountNavFollowedPages: true, accountNavWatchlist: true, lightbox: true };

/* Block links */ if (mw.config.get("wgUserGroups").indexOf('sysop') > -1) { $(window).load(function {       $('.tag-container').after('Block');    }); }

/* Alert if global.js loads in chat */ if ( wgCanonicalSpecialPageName == 'Chat' ) { alert('Loaded through global.js'); }

/* Redirect to base page if ends with '/' */ if (window.location.href.match("/$")) { window.location.href = window.location.href.slice(0, -1); }

//—————————————————————————————— ! ! ! ———————————————————————————————// /* Import scripts. NOTE: Place scripts configurations above this line */

/* Sine */ importScriptURI('https://gist.githubusercontent.com/LunarTwilight/542e36111f0ebf3d12b09196be6151af/raw/a7315bb58ab0d03b63078d0dac0ffc8cdaf82f91/sine.js');

/* ColoredColors */ importScriptURI('https://gist.githubusercontent.com/LunarTwilight/084c986abe21b81afbc9f42a83d7a23f/raw/9750ff951d3976920838d89c4c40deb4c591af01/ColoredColors.js');

/* Imports */ $(window).load(function {   importArticles({ type: "script", articles: [ 'u:dev:MediaWiki:ViewRemoved/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:MediaWiki:Wikimarks/code.js', 'u:dev:MediaWiki:WallGreetingButton/code.js', 'u:dev:MediaWiki:PurgeButton/code.js', 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:QQX/code.js', 'u:dev:MediaWiki:RevealAnonIP/usercode.js', 'u:dev:MediaWiki:AutoEditDropdown/code.js', 'u:dev:MediaWiki:PortableCSSPad/code.js' ]   }); });

/* Make DisplayClock and AdvancedOasisUI scripts not load on AT and SP */ if (wgCityId != "7553" && wgCityId != "95") { importScriptPage('MediaWiki:DisplayClock/code.js', 'dev'); importScriptPage('MediaWiki:AdvancedOasisUI/code.js', 'dev'); }