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); //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); 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'; 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); //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); 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'; 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 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); //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(wikiPrintCSS_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'; 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); //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); 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'; 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); } });