User:OttoLannister550/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MassEdit/code.js',        'u:dev:MediaWiki:MassCategorization/code.js',        'u:dev:MediaWiki:FindAndReplace/code.js',        'u:dev:MediaWiki:AjaxRename/code.js',        'u:dev:MediaWiki:AjaxEdit.js',        'u:dev:MediaWiki:AjaxRedirect/code.js',        'u:dev:MediaWiki:MassNullEdit/code.js',        'u:dev:MediaWiki:AjaxDelete/code.js',        'u:dev:MediaWiki:AjaxBatchDelete.js',        'u:dev:MediaWiki:AjaxBatchUndelete.js',        'u:dev:MediaWiki:AjaxEditPreview.js',        'u:dev:MediaWiki:WhatLinksHere/code.js',        'u:dev:MediaWiki:TopArticles/code.js',        'u:dev:MediaWiki:MassRename/code.js',        'u:dev:MediaWiki:DisplayTimer/code.js',        'u:dev:MediaWiki:NullEditButton/code.js',        'u:dev:MediaWiki:DisableCode/code.js',        'u:dev:MediaWiki:PageCreator/code2.js',        'u:dev:MediaWiki:ThemeToggler.js', 'u:dev:MediaWiki:DateInserter/code.js', 'u:dev:MediaWiki:QuickPurge.js', 'u:dev:MediaWiki:SkinSwitchFD.js', 'u:dev:MediaWiki:MultiUpload.js', 'u:dev:MediaWiki:ImageMapEdit.js', 'u:dev:MediaWiki:ImageMapEditZoom.js', 'u:dev:MediaWiki:MobilePreview.js', ] });

/* Adding Personal CSS, Personal JS, Wiki CSS, and Wiki JS to the Wiki Tools' Dropdown */ $(function { //Personal Common CSS Sub Menu    var personalCommonCSS_a = document.createElement('a');    personalCommonCSS_a.href = '/wiki/Special:MyPage/common.css';    personalCommonCSS_a.id = 'Personal_Common_CSS';    personalCommonCSS_a.innerHTML = 'Common CSS';    var personalCommonCSS_li = document.createElement('li');    personalCommonCSS_li.appendChild(personalCommonCSS_a);

//Personal FandomDesktop CSS Sub Menu var personalFandomDesktopCSS_a = document.createElement('a'); personalFandomDesktopCSS_a.href = '/wiki/Special:MyPage/fandomdesktop.css'; personalFandomDesktopCSS_a.id = 'Personal_FandomDesktop_CSS'; personalFandomDesktopCSS_a.innerHTML = 'FandomDesktop CSS'; var personalFandomDesktopCSS_li = document.createElement('li'); personalFandomDesktopCSS_li.appendChild(personalFandomDesktopCSS_a); //Personal FandomMobile CSS Sub Menu var personalFandomMobileCSS_a = document.createElement('a'); personalFandomMobileCSS_a.href = '/wiki/Special:MyPage/fandommobile.css'; personalFandomMobileCSS_a.id = 'Personal_FandomMobile_CSS'; personalFandomMobileCSS_a.innerHTML = 'FandomMobile CSS'; var personalFandomMobileCSS_li = document.createElement('li'); personalFandomMobileCSS_li.appendChild(personalFandomMobileCSS_a); //Personal Oasis CSS Sub Menu var personalOasisCSS_a = document.createElement('a'); personalOasisCSS_a.href = '/wiki/Special:MyPage/oasis.css'; personalOasisCSS_a.id = 'Personal_Oasis_CSS'; personalOasisCSS_a.innerHTML = 'Oasis CSS'; var personalOasisCSS_li = document.createElement('li'); personalOasisCSS_li.appendChild(personalOasisCSS_a); //Combining All Personal CSS Sub Menus var personalCSS_submenu_ul = document.createElement('ul'); personalCSS_submenu_ul.className = 'wds-list wds-is-linked'; personalCSS_submenu_ul.appendChild(personalCommonCSS_li); personalCSS_submenu_ul.appendChild(personalFandomDesktopCSS_li); personalCSS_submenu_ul.appendChild(personalFandomMobileCSS_li); personalCSS_submenu_ul.appendChild(personalOasisCSS_li); var personalCSS_submenu_div = document.createElement('div'); personalCSS_submenu_div.className = 'wds-is-not-scrollable wds-dropdown-level-2__content'; personalCSS_submenu_div.style.left = 'inherit'; personalCSS_submenu_div.style.right = '100%'; personalCSS_submenu_div.appendChild(personalCSS_submenu_ul); //Personal CSS Dropdown Menu var personalCSS_a = document.createElement('a'); personalCSS_a.href = '#'; personalCSS_a.id = 'Personal_CSS'; personalCSS_a.innerHTML = 'Personal CSS'; var personalCSS_li = document.createElement('li'); personalCSS_li.className = 'wds-dropdown-level-2 is-calculated css-js_pages_li'; personalCSS_li.appendChild(personalCSS_a); personalCSS_li.appendChild(personalCSS_submenu_div); //Personal Common JS Sub Menu var personalCommonJS_a = document.createElement('a'); personalCommonJS_a.href = '/wiki/Special:MyPage/common.js'; personalCommonJS_a.id = 'Personal_Common_JS'; personalCommonJS_a.innerHTML = 'Common JS'; var personalCommonJS_li = document.createElement('li'); personalCommonJS_li.appendChild(personalCommonJS_a); //Personal FandomDesktop JS Sub Menu var personalFandomDesktopJS_a = document.createElement('a'); personalFandomDesktopJS_a.href = '/wiki/Special:MyPage/fandomdesktop.js'; personalFandomDesktopJS_a.id = 'Personal_FandomDesktop_JS'; personalFandomDesktopJS_a.innerHTML = 'FandomDesktop JS'; var personalFandomDesktopJS_li = document.createElement('li'); personalFandomDesktopJS_li.appendChild(personalFandomDesktopJS_a); //Personal FandomMobile JS Sub Menu var personalFandomMobileJS_a = document.createElement('a'); personalFandomMobileJS_a.href = '/wiki/Special:MyPage/fandommobile.js'; personalFandomMobileJS_a.id = 'Personal_FandomMobile_JS'; personalFandomMobileJS_a.innerHTML = 'FandomMobile JS'; var personalFandomMobileJS_li = document.createElement('li'); personalFandomMobileJS_li.appendChild(personalFandomMobileJS_a); //Personal Oasis JS Sub Menu var personalOasisJS_a = document.createElement('a'); personalOasisJS_a.href = '/wiki/Special:MyPage/oasis.js'; personalOasisJS_a.id = 'Personal_Oasis_JS'; personalOasisJS_a.innerHTML = 'Oasis JS'; var personalOasisJS_li = document.createElement('li'); personalOasisJS_li.appendChild(personalOasisJS_a); //Combining All Personal JS Sub Menus var personalJS_submenu_ul = document.createElement('ul'); personalJS_submenu_ul.className = 'wds-list wds-is-linked'; personalJS_submenu_ul.appendChild(personalCommonJS_li); personalJS_submenu_ul.appendChild(personalFandomDesktopJS_li); personalJS_submenu_ul.appendChild(personalFandomMobileJS_li); personalJS_submenu_ul.appendChild(personalOasisJS_li); var personalJS_submenu_div = document.createElement('div'); personalJS_submenu_div.className = 'wds-is-not-scrollable wds-dropdown-level-2__content'; personalJS_submenu_div.style.left = 'inherit'; personalJS_submenu_div.style.right = '100%'; personalJS_submenu_div.appendChild(personalJS_submenu_ul); //Personal JS Dropdown Menu var personalJS_a = document.createElement('a'); personalJS_a.href = '#'; personalJS_a.id = 'Personal_JS'; personalJS_a.innerHTML = 'Personal JS'; var personalJS_li = document.createElement('li'); personalJS_li.className = 'wds-dropdown-level-2 is-calculated css-js_pages_li'; personalJS_li.appendChild(personalJS_a); personalJS_li.appendChild(personalJS_submenu_div); //Wiki Common CSS Sub Menu var wikiCommonCSS_a = document.createElement('a'); wikiCommonCSS_a.href = '/wiki/MediaWiki:Common.css'; wikiCommonCSS_a.id = 'Wiki_Common_CSS'; wikiCommonCSS_a.innerHTML = 'Common CSS'; var wikiCommonCSS_li = document.createElement('li'); wikiCommonCSS_li.appendChild(wikiCommonCSS_a); //Wiki FandomDesktop CSS Sub Menu var wikiFandomDesktopCSS_a = document.createElement('a'); wikiFandomDesktopCSS_a.href = '/wiki/MediaWiki:Fandomdesktop.css'; wikiFandomDesktopCSS_a.id = 'Wiki_FandomDesktop_CSS'; wikiFandomDesktopCSS_a.innerHTML = 'FandomDesktop CSS'; var wikiFandomDesktopCSS_li = document.createElement('li'); wikiFandomDesktopCSS_li.appendChild(wikiFandomDesktopCSS_a); //Wiki Wikia CSS Sub Menu var wikiWikiaCSS_a = document.createElement('a'); wikiWikiaCSS_a.href = '/wiki/MediaWiki:Wikia.css'; wikiWikiaCSS_a.id = 'Wiki_Wikia_CSS'; wikiWikiaCSS_a.innerHTML = 'Wikia CSS'; var wikiWikiaCSS_li = document.createElement('li'); wikiWikiaCSS_li.appendChild(wikiWikiaCSS_a); //Wiki Print CSS Sub Menu var wikiPrintCSS_a = document.createElement('a'); wikiPrintCSS_a.href = '/wiki/MediaWiki:Print.css'; wikiPrintCSS_a.id = 'Wiki_Print_CSS'; wikiPrintCSS_a.innerHTML = 'Print CSS'; var wikiPrintCSS_li = document.createElement('li'); wikiPrintCSS_li.appendChild(wikiPrintCSS_a);

//Wiki Group-autoconfirmed CSS Sub Menu var wikiGroupAutoConfirmedCSS_a = document.createElement('a'); wikiGroupAutoConfirmedCSS_a.href = '/wiki/MediaWiki:Group-autoconfirmed.css'; wikiGroupAutoConfirmedCSS_a.id = 'Wiki_Group-autoconfirmed_CSS'; wikiGroupAutoConfirmedCSS_a.innerHTML = 'Group-autoconfirmed CSS'; var wikiGroupAutoConfirmedCSS_li = document.createElement('li'); wikiGroupAutoConfirmedCSS_li.appendChild(wikiGroupAutoConfirmedCSS_a); //Wiki Group-sysop CSS Sub Menu var wikiGroupSysopCSS_a = document.createElement('a'); wikiGroupSysopCSS_a.href = '/wiki/MediaWiki:Group-sysop.css'; wikiGroupSysopCSS_a.id = 'Wiki_Group-sysop_CSS'; wikiGroupSysopCSS_a.innerHTML = 'Group-sysop CSS'; var wikiGroupSysopCSS_li = document.createElement('li'); wikiGroupSysopCSS_li.appendChild(wikiGroupSysopCSS_a);

//Wiki Group-bot CSS Sub Menu var wikiGroupBotCSS_a = document.createElement('a'); wikiGroupBotCSS_a.href = '/wiki/MediaWiki:Group-bot.css'; wikiGroupBotCSS_a.id = 'Wiki_Group-bot_CSS'; wikiGroupBotCSS_a.innerHTML = 'Group-bot CSS'; var wikiGroupBotCSS_li = document.createElement('li'); wikiGroupBotCSS_li.appendChild(wikiGroupBotCSS_a); //Combining All Wiki CSS Sub Menus var wikiCSS_submenu_ul = document.createElement('ul'); wikiCSS_submenu_ul.className = 'wds-list wds-is-linked'; wikiCSS_submenu_ul.appendChild(wikiCommonCSS_li); wikiCSS_submenu_ul.appendChild(wikiFandomDesktopCSS_li); wikiCSS_submenu_ul.appendChild(wikiWikiaCSS_li); wikiCSS_submenu_ul.appendChild(wikiPrintCSS_li); wikiCSS_submenu_ul.appendChild(wikiGroupAutoConfirmedCSS_li); wikiCSS_submenu_ul.appendChild(wikiGroupSysopCSS_li); wikiCSS_submenu_ul.appendChild(wikiGroupBotCSS_li); var wikiCSS_submenu_div = document.createElement('div'); wikiCSS_submenu_div.className = 'wds-is-not-scrollable wds-dropdown-level-2__content'; wikiCSS_submenu_div.style.left = 'inherit'; wikiCSS_submenu_div.style.right = '100%'; wikiCSS_submenu_div.appendChild(wikiCSS_submenu_ul); //Wiki CSS Dropdown Menu var wikiCSS_a = document.createElement('a'); wikiCSS_a.href = '#'; wikiCSS_a.id = 'Wiki_CSS'; wikiCSS_a.innerHTML = 'Wiki CSS'; var wikiCSS_li = document.createElement('li'); wikiCSS_li.className = 'wds-dropdown-level-2 is-calculated css-js_pages_li'; wikiCSS_li.appendChild(wikiCSS_a); wikiCSS_li.appendChild(wikiCSS_submenu_div); //Wiki Common JS Sub Menu var wikiCommonJS_a = document.createElement('a'); wikiCommonJS_a.href = '/wiki/MediaWiki:Common.js'; wikiCommonJS_a.id = 'Wiki_Common_JS'; wikiCommonJS_a.innerHTML = 'Common JS'; var wikiCommonJS_li = document.createElement('li'); wikiCommonJS_li.appendChild(wikiCommonJS_a); //Wiki FandomDesktop JS Sub Menu var wikiFandomDesktopJS_a = document.createElement('a'); wikiFandomDesktopJS_a.href = '/wiki/MediaWiki:Fandomdesktop.js'; wikiFandomDesktopJS_a.id = 'Wiki_FandomDesktop_JS'; wikiFandomDesktopJS_a.innerHTML = 'FandomDesktop JS'; var wikiFandomDesktopJS_li = document.createElement('li'); wikiFandomDesktopJS_li.appendChild(wikiFandomDesktopJS_a); //Wiki Wikia JS Sub Menu var wikiWikiaJS_a = document.createElement('a'); wikiWikiaJS_a.href = '/wiki/MediaWiki:Wikia.js'; wikiWikiaJS_a.id = 'Wiki_Wikia_JS'; wikiWikiaJS_a.innerHTML = 'Wikia JS'; var wikiWikiaJS_li = document.createElement('li'); wikiWikiaJS_li.appendChild(wikiWikiaJS_a);

//Wiki Group-autoconfirmed JS Sub Menu var wikiGroupAutoConfirmedJS_a = document.createElement('a'); wikiGroupAutoConfirmedJS_a.href = '/wiki/MediaWiki:Group-autoconfirmed.js'; wikiGroupAutoConfirmedJS_a.id = 'Wiki_Group-autoconfirmed_JS'; wikiGroupAutoConfirmedJS_a.innerHTML = 'Group-autoconfirmed JS'; var wikiGroupAutoConfirmedJS_li = document.createElement('li'); wikiGroupAutoConfirmedJS_li.appendChild(wikiGroupAutoConfirmedJS_a); //Wiki Group-sysop JS Sub Menu var wikiGroupSysopJS_a = document.createElement('a'); wikiGroupSysopJS_a.href = '/wiki/MediaWiki:Group-sysop.js'; wikiGroupSysopJS_a.id = 'Wiki_Group-sysop_JS'; wikiGroupSysopJS_a.innerHTML = 'Group-sysop JS'; var wikiGroupSysopJS_li = document.createElement('li'); wikiGroupSysopJS_li.appendChild(wikiGroupSysopJS_a);

//Wiki Group-bot JS Sub Menu var wikiGroupBotJS_a = document.createElement('a'); wikiGroupBotJS_a.href = '/wiki/MediaWiki:Group-bot.js'; wikiGroupBotJS_a.id = 'Wiki_Group-bot_JS'; wikiGroupBotJS_a.innerHTML = 'Group-bot JS'; var wikiGroupBotJS_li = document.createElement('li'); wikiGroupBotJS_li.appendChild(wikiGroupBotJS_a); //Combining All Wiki JS Sub Menus var wikiJS_submenu_ul = document.createElement('ul'); wikiJS_submenu_ul.className = 'wds-list wds-is-linked'; wikiJS_submenu_ul.appendChild(wikiCommonJS_li); wikiJS_submenu_ul.appendChild(wikiFandomDesktopJS_li); wikiJS_submenu_ul.appendChild(wikiWikiaJS_li); wikiJS_submenu_ul.appendChild(wikiGroupAutoConfirmedJS_li); wikiJS_submenu_ul.appendChild(wikiGroupSysopJS_li); wikiJS_submenu_ul.appendChild(wikiGroupBotJS_li); var wikiJS_submenu_div = document.createElement('div'); wikiJS_submenu_div.className = 'wds-is-not-scrollable wds-dropdown-level-2__content'; wikiJS_submenu_div.style.left = 'inherit'; wikiJS_submenu_div.style.right = '100%'; wikiJS_submenu_div.appendChild(wikiJS_submenu_ul); //Wiki JS Dropdown Menu var wikiJS_a = document.createElement('a'); wikiJS_a.href = '#'; wikiJS_a.id = 'Wiki_JS'; wikiJS_a.innerHTML = 'Wiki JS'; var wikiJS_li = document.createElement('li'); wikiJS_li.className = 'wds-dropdown-level-2 is-calculated css-js_pages_li'; wikiJS_li.appendChild(wikiJS_a); wikiJS_li.appendChild(wikiJS_submenu_div); //Adding the New Menus to the List var i;   var wikiToolsDropdown = document.querySelectorAll('.wiki-tools .wds-dropdown__content>ul.wds-list'); for (i = 0; i < wikiToolsDropdown.length; i++) { wikiToolsDropdown[i].appendChild(personalCSS_li); wikiToolsDropdown[i].appendChild(personalJS_li); wikiToolsDropdown[i].appendChild(wikiCSS_li); wikiToolsDropdown[i].appendChild(wikiJS_li); } //Styling the Menus var cssjsPages_li = document.getElementsByClassName('css-js_pages_li'); var cssjsPages_a = document.querySelectorAll('.css-js_pages_li>a'); for (i = 0; i < cssjsPages_li.length; i++) { cssjsPages_li[i].style.marginRight = '9px'; cssjsPages_li[i].style.marginLeft = '0'; cssjsPages_a[i].style.paddingLeft = '19px'; } });