User:Kingcat 100/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:DisableCode/code.js',        'u:dev:MediaWiki:NoImageLightbox/code.js',        'u:dev:MediaWiki:PurgeButton.js',        'u:dev:MediaWiki:UCXSearchBar.js',        'u:dev:MediaWiki:AvatarLink.js',        'u:dev:MediaWiki:SpriteEditor.js',        'u:dev:MediaWiki:AllPagesHideRedirect/code.js',    ] });

$(function {    "use strict";    document.getElementById('ca-ve-edit').parentElement.remove;

var $editlink = $(".tools-menu"); var $hereLink = $( "", {        append: [            $editlink.parent.find("[data-name=whatlinkshere]"),        ]    }); $hereLink.removeClass("overflow");

$(".page-header__actions .wds-dropdown .wds-list li:first-child").after($hereLink); $('.page-footer__categories').removeClass("wds-is-collapsed"); });

// Testsarea var images = [ "https://community.fandom.com/wiki/File:No1_badge.png", "https://community.fandom.com/wiki/File:No2_badge.png", "https://minecraft.fandom.com/de/wiki/Datei:Wachen-R%C3%BCstungsbesatz-Harnisch-Lapislazuli.png" ];

var imageIndex = 0; var imageElement = document.getElementById("image"); var nextButton = document.getElementById("nextButton");

function showNextImage { imageElement.src = images[imageIndex]; imageIndex = (imageIndex + 1) % images.length; }

nextButton.addEventListener("click", showNextImage);

showNextImage;

// Ende