1
0
Fork 0

Fix rules
All checks were successful
QS / QS (push) Successful in 4s

This commit is contained in:
Snoweuph 2024-07-28 12:22:17 +02:00
parent 092fe994c8
commit 2ec6d1d775
Signed by: Snoweuph
GPG key ID: A494330694B208EF

View file

@ -3,7 +3,7 @@
// @namespace https://git.euph.dev/Snoweuph // @namespace https://git.euph.dev/Snoweuph
// @match https://army-forge.onepagerules.com/view* // @match https://army-forge.onepagerules.com/view*
// @grant none // @grant none
// @version 1.0.7 // @version 1.0.8
// @author Snoweuph // @author Snoweuph
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @require https://html2canvas.hertzen.com/dist/html2canvas.min.js // @require https://html2canvas.hertzen.com/dist/html2canvas.min.js
@ -57,12 +57,12 @@ function generateCards() {
function generateRules() { function generateRules() {
const rules_root = const rules_root =
document.getElementsByClassName("MuiContainer-root")[0].lastElementChild; document.getElementsByClassName("MuiContainer-root")[0].lastElementChild
.firstElementChild.firstElementChild.firstElementChild;
const rules_list = const rules_list =
rules_root.firstElementChild.firstElementChild.firstElementChild rules_root.firstElementChild.lastElementChild.firstElementChild
.firstElementChild.lastElementChild.firstElementChild.firstElementChild .firstElementChild.firstElementChild.firstElementChild.firstElementChild;
.firstElementChild.firstElementChild.firstElementChild;
rules_list.style.display = "flex"; rules_list.style.display = "flex";
rules_list.style.flexDirection = "column"; rules_list.style.flexDirection = "column";