User:Startus/global.js

//markBlocked mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Wiki13/markblocked.js&action=raw&ctype=text/javascript') //Restorer mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/Restorer.js&action=raw&ctype=text/javascript'); // Backlink: User:BrandonXLF/Restorer //Reply-link mw.loader.load('//en.wikipedia.org/w/index.php?title=User:EnterpriseyBot/reply-link-dev.js&action=raw&ctype=text/javascript'); window.replyLinkAutoReload = true; //diff-permalink mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Enterprisey/diff-permalink.js&action=raw&ctype=text/javascript"); //script-installer mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/script-installer.js&action=raw&ctype=text/javascript'); //JWB mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); //OneClickArchiver mw.loader.load('https://meta.miraheze.org/w/index.php?title=User:Magogre/OneClickArchiver.js&action=raw&ctype=text/javascript'); //GlobalUsefulLinks /*Adapted from dev:ManageWiki/MobileSidebar developed by User:Yahya*/ /* Main function */ var timer = setInterval(function {    if ($('.menu ul:first').length) {         console.log("mobile menu exists");         clearInterval(timer);         $('.menu ul:first').after( ' \                    \  \ GlobalUsefulLinks \  \  \ \                         \  \ SpecialPages \  \  \  \  \ PageTranslation \  \  \  \  \ Translate \  \  \  \ <a href="/wiki/Special:LanguageStats" \ class="mw-ui-icon mw-ui-icon-before mw-ui-icon-wikimedia-edit-base20"> \ LanguageStats \ </a> \ </li> \  \ <a href="/wiki/Special:RecentChanges" \ class="mw-ui-icon mw-ui-icon-before mw-ui-icon-wikimedia-edit-base20"> \ RecentChanges \ </a> \ </li> \ </ul> \ </ul>' );         $(".menu").find(".level2").hide; // hide level2 until level1 is clicked          $(".level1").click(function(event){ $(this).find(".level2").slideToggle(500); }); // if level1 is clicked, dropdown level2