From 7dc9d5ac71110407f46a2738f1564ef0f9ab4d35 Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Sun, 28 Jul 2024 09:28:29 +0000 Subject: [PATCH] main.user.js aktualisiert --- main.user.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.user.js b/main.user.js index fc1c522..68355af 100644 --- a/main.user.js +++ b/main.user.js @@ -3,7 +3,7 @@ // @namespace https://git.euph.dev/Snoweuph // @match https://army-forge.onepagerules.com/view* // @grant none -// @version 1.0.1 +// @version 1.0.2 // @author Snoweuph // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js // @require https://html2canvas.hertzen.com/dist/html2canvas.min.js @@ -52,9 +52,8 @@ function generateCards() { } function generateRules() { - const rules_root = - document.getElementsByClassName("MuiContainer-root")[1].firstElementChild.firstElementChild.firstElementChild.firstElementChild.lastElementChild; - rules_root.style.displa = "flex" + const rules_root = document.getElementsByClassName("MuiContainer-root")[0].lastElementChild.firstElementChild.firstElementChild.firstElementChild.firstElementChild.lastElementChild + rules_root.style.display = "flex" rules_root.style.flexDirection = "column" rules_root.style.gap = "1rem"