User:Sophiedp/global.js

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

/* Alert if global.js loads in chat */ if ( wgCanonicalSpecialPageName == 'Chat' ) { alert('Global.js is loaded in chat!'); }

/* FastDelete settings */ var fdButtons = []; fdButtons.push({   'summary': 'Housekeeping',    'label': 'HK' });

/* Footer */ $(function {   var buttons = {        Support: {            text: 'Support',            href: 'w:Special:Contact'        },        space1: {            text: ' -',            href: ' '        },        Help: {            text: ' Help',            href: 'w:c:www:Help:Contents'        },        space2: {            text: ' -'        },        ToU: {            text: ' Terms of Use',            href: 'w:c:www:Terms_of_use'        },        space3: {            text: ' -'        },        Privacy: {            text: ' Privacy',            href: 'w:c:www:Privacy_Policy'        },        space4: {            text: ' -'        },        GlobalSitemap: {            text: ' Global Sitemap',            href: 'w:c:www:Sitemap'        },        space5: {            text: ' -'        },        LocalSitemap: {            text: ' Local Sitemap',            href: 'Local_Sitemap'        },        space6: { text: ' -' },       API: { text: ' API', href: 'w:c:api' }   };    $('.wds-global-footer__bottom-bar-row.wds-has-padding').html(''); for (var i in buttons) { $('.wds-global-footer__bottom-bar-row.wds-has-padding').append(           $('')                .attr({ href: (buttons[i].href ? mw.config.get('wgArticlePath').replace(/\$1/g, buttons[i].href + (!!window.location.hash ? window.location.hash : )) : ), class: 'globalnav-button', id: (buttons[i].id ? buttons[i].id : '') })               .text(buttons[i].text)        ); if (buttons[i].id && buttons[i].handler && typeof buttons[i].handler == 'function') { $('#' + buttons[i].id).bind('click', buttons[i].handler); }   } });

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

/* Imports */ $(window).load(function {   importArticles({ type: "script", articles: [ 'u:embercastle:MediaWiki:Sine.js', 'u:embercastle:MediaWiki:ColoredColors.js', 'u:embercastle:MediaWiki:QuickCreateUserPage.js', '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:AutoEditDropdown/code.js', 'u:dev:MediaWiki:FastDelete/code.js', 'u:dev:MediaWiki:Pseudo-Vector.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'); }