1
0
Fork 0

main.user.js aktualisiert
Some checks failed
QS / QS (push) Failing after 4s

This commit is contained in:
Snoweuph 2024-07-28 09:48:27 +00:00
parent 2ed3dddf8b
commit 0613cb03c6

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.4 // @version 1.0.5
// @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
@ -47,7 +47,7 @@ function generateCards() {
html2canvas(card, { scale: 15, backgroundColor: null }).then((canvas) => { html2canvas(card, { scale: 15, backgroundColor: null }).then((canvas) => {
const link = document.createElement("a"); const link = document.createElement("a");
link.download = + ".png"; link.download = title + ".png";
link.href = canvas.toDataURL(); link.href = canvas.toDataURL();
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();