Last active
February 23, 2024 20:03
-
-
Save okkdev/4a33e9b367ebf1ce7d302c1f82876ade to your computer and use it in GitHub Desktop.
Run this script in the browser console of a cardmarket wantlist to export the list as decklist with this format: AMOUNTx CARDNAME (EXPANSION)
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
console.log([...document.querySelectorAll('#WantsListTable>table>tbody>tr')].map(x => [x.querySelector('.amount').innerText+'x', x.querySelector('.name').innerText, '('+x.querySelector('.expansion>div>span>span').innerText+')'].join(' ')).join('\n')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
without expansion: