This commit is contained in:
parent
3374bc134b
commit
b248641084
1 changed files with 8 additions and 8 deletions
16
main.user.js
16
main.user.js
|
@ -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.5
|
// @version 1.0.6
|
||||||
// @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,14 +57,14 @@ 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.firstElementChild
|
|
||||||
.lastElementChild.firstElementChild.firstElementChild.firstElementChild
|
|
||||||
.firstElementChild.firstElementChild;
|
|
||||||
|
|
||||||
rules_root.style.display = "flex";
|
const rules_list = rules_root.firstElementChild.firstElementChild.firstElementChild.firstElementChild
|
||||||
rules_root.style.flexDirection = "column";
|
.lastElementChild.firstElementChild.firstElementChild.firstElementChil.firstElementChild.firstElementChild;
|
||||||
rules_root.style.gap = "1rem";
|
|
||||||
|
rules_list.style.display = "flex";
|
||||||
|
rules_list.style.flexDirection = "column";
|
||||||
|
rules_list.style.gap = "1rem";
|
||||||
|
|
||||||
html2canvas(rules_root, { scale: 15, backgroundColor: null }).then(
|
html2canvas(rules_root, { scale: 15, backgroundColor: null }).then(
|
||||||
(canvas) => {
|
(canvas) => {
|
||||||
|
|
Loading…
Reference in a new issue