Last active
December 27, 2022 12:04
-
-
Save SagiriHimoto/5d195288abef6f146be618422e8f4261 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Locate toy function (outputs in console log) */ | |
function GetToyURIData(toynomber) { | |
const childnumber = toynomber + 2 | |
var sourceCanvas = document.querySelector("body > modal-container > div.modal-dialog.undefined > div > toys-modal > div.modal-body > div.selection-container > div > div > div > div:nth-child("+childnumber+") > toy-canvas > canvas"); | |
sourceImageData = sourceCanvas.toDataURL("image/png"); | |
console.log(sourceImageData); | |
} | |
/* Put toy nomber in brackets */ | |
/* If you are missing some toys in the list, then subtract the amount of missing toys from the toy number */ | |
GetToyURIData() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment