Open DustinLuck opened 2 years ago
Hi @DustinLuck. Thanks for bringing this to my attention.
You're right about what you say, itch.io seems to embed this game inside the page from another URL. The one I found was https://v6p9d9t4.ssl.hwcdn.net/html/5931936/index.html and I managed to run the scripts totally without issue on that URL. If you tried to run the restore script and didn't see a text area, it might be a styling issue in that it's there but appears invisible. Did you try clicking/tapping where you'd expect the text area to be? I know some page styles cause that to be the case. That's probably a bug I need to fix, to ensure the button
/textarea
is always visible.
As for the fact that this game runs under an iframe
, that part's more tricky. I intend for this script to be pretty generic so don't want to get bogged down in making it work for specific games, especially when I don't know how many people actually would want this script for that game. I could potentially scan the HTML for iframes, but there's no guarantee the presence of an iframe means the game is played from within that iframe.
If you happen to know anything about how itch.io embed their games into the page, that could be useful to ensure any changes cover a broad range of itch.io games? I'm just a little conscious that any changes to make the script any less generic could lead to it breaking on other games.
First of all, thank you for making this tool. It worked perfectly to move my stats for Waffle!
Dordle was another issue, however. It seems that the stats are not associated with the Dordle site; they are stored on https://v6p9d9t4.ssl.hwcdn.net/. I did finally get it to work by hacking the scripts here. I was able to run the save script on the hwcdn link to get the values, but the restore script was not working. When you browse to the URL, an XML document with an error message is displayed. Running the bookmarklet shows the word 'Restore' below the XML, but no textarea to paste the value from the save script. What I wound up doing was modifying the restore script with the code from btnClick and the settings value I had saved as str.
I'm not sure if your script can take all of this into account, but maybe this info will help someone else.