User:Lily/global.js

/* All JavaScript here will be loaded for users of the Vector skin */ /* Das folgende JavaScript wird für Benutzer der Vector-Benutzeroberfläche geladen. */ /* Credit to @GrahamSH for this */ var mirawikilist = ''; console.log('JS loaded!'); var header = $("h1").text;

mw.loader.getScript('/wiki/User:Lily/miwi.js?action=raw&ctype=text/javascript') .then( function {    	mirawikilist = mirawikis;    	 console.log('Liste: ' + mirawikis);    } ); console.log('Liste loaded!' + header); var editme = window.location.href + '?action=edit'; var rawme = window.location.href + '?action=raw'; var histme = window.location.href + '?action=history'; var infome = window.location.href + '?action=info'; var purme = window.location.href + '?action=purge'; var qqxme = window.location.href + '?uselang=qqx';

var navBar = ' \ \   \      Wikis \ \         Lilypond\ Kubu\ Mein Garten\ Regionalbahn\ Mein Testwiki\ Meta Wikis &#x25BA;\ \ Meta</a>\ Login</a>\ Templates</a>\ Entwicklerwiki</a>\ Commons</a>\ Testwiki</a>\ </ul>\ \         Miraheze Wikis &#x25BA;</a>\ <ul class="sub-menu" >' + mirawikilist + // list of Miraheze Wikis '</ul>\ \         Wikipedia &#x25BA;</a>\ <ul class="sub-menu" >\ Meta</a>\ MediaWiki</a>\ Commons</a>\ Wikipedia</a>\ Wikibooks</a>\ Wikipedia (en)</a>\ Wikibooks (en)</a>\ Wikidata</a>\ Species</a>\ <a target="_blank" href="https://wikisource.org/">Wikisource</a>\ <a target="_blank" href="https://de.wikiquote.org/">Wikiquote</a>\ <a target="_blank" href="https://de.wikiversity.org/">Wikiversity</a>\ <a target="_blank" href="https://de.wikivoyage.org/">Wikivoyage</a>\ <a target="_blank" href="https://de.wikinews.org/">Wikinews</a>\ <a target="_blank" href="https://en.wikiquote.org/">Wikiquote (en)</a>\ <a target="_blank" href="https://en.wikiversity.org/">Wikiversity (en)</a>\ <a target="_blank" href="https://en.wikivoyage.org/">Wikivoyage (en)</a>\ <a target="_blank" href="https://en.wikinews.org/">Wikinews (en)</a>\ <a target="_blank" href="https://imslp.org/">IMSPL</a>\ </ul>\ \   \    \    \      \        <a target="_blank" href="http://lilypond.org/" target="_blank">Lilypond</a>\ \     \        <a target="_blank" href="https://mail.gnu.org/archive/html/lilypond-user/">Mailing list</a>\ <a target="_blank" href="https://gitlab.com/lilypond/lilypond">Source</a>\ <a target="_blank" href="https://mail.gnu.org/archive/html/lilypond-user/">Mailing list</a>\ <a target="_blank" href="http://lilybin.com/">Online testen</a>\ <a target="_blank" href="http://lilypond.org/website/manuals.de.html/">Handbücher</a>\ <a target="_blank" href="https://lilypondforum.de/">Forum</a>\ <a class="separator-top" href="https://lilypond.miraheze.org/wiki/Lilypond_Links">Lilypond Links</a>\ <a href="https://lilypond.miraheze.org/wiki/Kategorie:Lilypond_Tipps">Lilypond Tipps</a>\ <a href="https://lilypond.miraheze.org/wiki/LSR">Code Snippets</a>\ \   \    \      \        <a href="/wiki/Kategorie:Programmieren" target="_blank">Programmieren</a>\ \     \        <a target="_blank" href="/wiki/Help:Navigationsleiste am oberen Bildschirmrand">Navigationsleiste &#x25BA;</a>\ <ul class="sub-menu" >\ <a target="_blank" href="/wiki/MediaWiki:Vector.js">Vector.js</a>\ <a target="_blank" href="/wiki/MediaWiki:Vector.css">Vector.css</a>\ <a target="_blank" href="/wiki/MediaWiki:Common.css">Common.css</a>\ <a target="_blank" class="separator-top" href="https://meta.miraheze.org/wiki/Special:MyPage/global.css">Meta Global.css</a>\ <a target="_blank" href="https://meta.miraheze.org/wiki/Special:MyPage/global.js">Meta Global.js</a>\ <a target="_blank" href="https://commons.miraheze.org/wiki/File:Floppy_white.svg">floppy disk</a>\ </ul>\ \         <a href="https://lilypond.miraheze.org/wiki/Hilfe:CSS">CSS</a>\ <a href="https://lilypond.miraheze.org/wiki/Hilfe:Lua">Lua</a>\ <a href="https://lilypond.miraheze.org/wiki/Hilfe:PHP">PHP</a>\ <a href="https://lilypond.miraheze.org/wiki/Hilfe:SVG_Links">SVG</a>\ <a href="https://lilypond.miraheze.org/wiki/Kategorie:Scheme">Scheme</a>\ <a href="https://lilypond.miraheze.org/wiki/Kategorie:MediaWiki">MediaWiki Software</a>\ <a class="separator-top" target="_blank" href="https://gchq.github.io/CyberChef/">CyberChef</a>\ \   \    \      <a href="#">Wiki Administration</a> \ \       <a target="_blank" href="https://lilypond.miraheze.org/wiki/Hilfe:Namensraum">Namensräume &#x25BA;</a>\ <ul class="sub-menu" >\ <a target="_blank" href="/wiki/Special:AllPages/:">Alle Seiten</a>\ <a target="_blank" href="/wiki/Special:AllPages/File:">Alle Dateien</a>\ <a target="_blank" href="/wiki/Special:AllPages/MediaWiki:">MediaWiki Seiten</a>\ <a target="_blank" href="/wiki/Special:AllPages/Category:">Alle Kategorien</a>\ <a target="_blank" href="/wiki/Special:AllPages/Help:">Help Seiten</a>\ <a target="_blank" href="/wiki/Special:AllPages/Template:">Vorlagen</a>\ <a target="_blank" href="/wiki/Special:AllPages/Module:">Module</a>\ <a target="_blank" href="/wiki/Special:AllPages/User:">Benutzerseiten</a>\ </ul>\ \     <a href="#">Infos über Wiki &#x25BA;</a>\ <ul class="sub-menu" >\ <a target="_blank" href="/wiki/Special:Statistics">Statistik</a>\ <a target="_blank" href="/wiki/Special:Version">Version</a>\ <a class="separator-top" target="_blank" href="/wiki/Special:AllMessages">Systemnachrichten</a>\ <a target="_blank" href="/wiki/Special:ExpandTemplates">Vorlagen expandieren</a>\ <a target="_blank" href="/wiki/Special:Interwiki">Interwiki Daten</a>\ <a target="_blank" href="/wiki/Special:CentralAuth">Benutzerkonto Information</a>\ </ul>\ \       <a href="#">Wartung &#x25BA;</a>\ <ul class="sub-menu" >\ <a class="separator-top" target="_blank" href="/wiki/Special:LongPages">Lange Seiten</a>\ <a target="_blank" href="/wiki/Special:AncientPages">Seit längerem unbearbeitete Seiten</a>\ <a target="_blank" href="/wiki/Special:UncategorizedCategories">Nicht kategorisierte Kategorien</a>\ <a target="_blank" href="/wiki/Special:UncategorizedPages">Nicht kategorisierte Seiten</a>\ <a target="_blank" href="/wiki/Special:UncategorizedTemplates">Nicht kategorisierte Vorlagen</a>\ <a target="_blank" href="/wiki/Special:UnusedCategories">Verwaiste Kategorien</a>\ <a target="_blank" href="/wiki/Special:UnusedFiles">Verwaiste Dateien</a>\ <a target="_blank" href="/wiki/Special:UnusedTemplates">Verwaiste Vorlagen</a>\ </ul>\ \         <a href="#">Fehlende Seiten &#x25BA;</a>\ <ul class="sub-menu" >\ <a target="_blank" href="/wiki/Special:WantedPages">Fehlende Seiten</a>\ <a target="_blank" href="/wiki/Special:WantedCategories">Fehlende Kategorien</a>\ <a target="_blank" href="/wiki/Special:WantedFiles">Fehlende Dateien</a>\ <a target="_blank" href="/wiki/Special:WantedTemplates">Fehlende Vorlagen</a>\ </ul>\ \         <a href="#">Administration &#x25BA;</a>\ <ul class="sub-menu" >\ <a target="_blank" href="/wiki/Special:ManageWiki/core">Grundeinstellungen</a>\ <a target="_blank" href="/wiki/Special:ManageWiki/permissions/*">Berechtigungen anonyme Benutzer</a>\ <a target="_blank" href="/wiki/Special:ManageWiki/permissions/user">Berechtigungen Benutzer</a>\ <a target="_blank" href="/wiki/Special:ManageWiki/permissions/sysop">Berechtigungen Admins</a>\ <a target="_blank" href="/wiki/Special:ManageWiki/settings">Einstellungen</a>\ <a target="_blank" href="/wiki/Special:ManageWiki/extensions">Erweiterungen</a>\ <a target="_blank" href="/wiki/Special:ManageWiki/namespaces">Namensräume</a>\ </ul>\ \         <a href="#">Seitenfunktionen &#x25BA;</a>\ <ul class="sub-menu" >\ <a target="_blank" href="' + editme + '">edit</a>\ <a target="_blank" href="' + rawme + '">raw</a>\ <a target="_blank" href="' + histme + '">history</a>\ <a target="_blank" href="' + infome + '">info</a>\ <a target="_blank" href="' + purme + '">refresh</a>\ <a target="_blank" href="' + qqxme + '">qqx</a>\ <a target="_blank" href="/wiki/Special:UserLogout">abmelden</a>\ </ul>\ \     \    \    \      <a href="#mw-page-base" title="top">\ <div style="margin-left: 1em; position: relative; top: 9px; width: 24px; height: 26px; border-top: 3px solid ; padding: 1px ">\ <div style="width: 0; height: 0; border-bottom: 16px solid; border-left: 12px solid transparent; border-right: 12px solid transparent;"> \ \     </a>\ \   \      <a href="#footer" title="bottom">\ <div style="margin-left: .4em; position: relative; bottom: 0; width: 24px; height: 26px; border-bottom: 3px solid ; padding: 1px ">\ <div style="position: relative; width: 0; height: 0; border-top: 16px solid; border-left: 12px solid transparent; border-right: 12px solid transparent; top: 10px"> \ \     </a>\ \   \      <a href="#wpSaveWidget" title="goto save button">\ <img height="25" src="https://static.miraheze.org/commonswiki/6/69/Floppy_white.svg" />\ </a>\ \ \ ';

$( "body" ).prepend( navBar ); console.log(navBar);