https://pokemoncard.io/pack-sim/ is a handy web service where you can open virtual packs. However, there’s no great option to export the collection as the list view doesn’t show card ids so you don’t know which of the cards of a given name you pulled.
I’ve built a solution which is running custom Javascript either in the Developer Console or as a bookmarklet:
const pattern = /(.*)\(.*\) x(\d+)/;
async function copy() {
const area = document.querySelector("#pulled-card-rowparent");
const pulls = area.querySelectorAll("div");
const cards = Object.values(pulls).map((div) => {
const id = div.querySelector("a")?.dataset.name;
const content = div.textContent;
const [full, name, amount] = content.match(pattern);
return `${amount} ${name} ${id}`;
});
await navigator.clipboard.writeText(cards.join("\n"));
}
copy();
Steps to perform
-
Open all your packs
-
Expand My Draft section if it isn’t open
-
Click Toggle View Mode so that the cards are shown as a list of text instead of images
-
Either open the Developer Console on your browser and copy-paste the code above into it. Once run, the list of cards will be in your clipboard to be pasted into somewhere else for safe keeping.
-
Alternatively, you can create a Bookmarklet by creating a new bookmark to your Bookmarks Bar and add the following into the URL field (it’s the same code as above but minified):
javascript:(function()%7Bconst%20pattern%20%3D%20%2F(.*)%5C(.*%5C)%20x(%5Cd%2B)%2F%3B%0A%0Aasync%20function%20copy()%20%7B%0A%20%20const%20area%20%3D%20document.querySelector(%22%23pulled-card-rowparent%22)%3B%0A%20%20const%20pulls%20%3D%20area.querySelectorAll(%22div%22)%3B%0A%0A%20%20const%20cards%20%3D%20Object.values(pulls).map((div)%20%3D%3E%20%7B%0A%20%20%20%20const%20id%20%3D%20div.querySelector(%22a%22)%3F.dataset.name%3B%0A%20%20%20%20const%20content%20%3D%20div.textContent%3B%0A%0A%20%20%20%20const%20%5Bfull%2C%20name%2C%20amount%5D%20%3D%20content.match(pattern)%3B%0A%0A%20%20%20%20return%20%60%24%7Bamount%7D%20%24%7Bname%7D%20%24%7Bid%7D%60%3B%0A%20%20%7D)%3B%0A%0A%20%20await%20navigator.clipboard.writeText(cards.join(%22%5Cn%22))%3B%0A%7D%0A%0Acopy()%3B%7D)()%3B
- If you use the bookmarklet approach, click the bookmark and it will copy the list in following format to your clipboard:
1 Skiddo sv1-11
1 Pawmi sv1-74
1 Wattrel sv1-77
1 Wiglett sv1-56
2 Lechonk sv1-155
3 Capsakid sv1-28