Hello.
You could either do it with a Chrome extension, or with a headless browser API like Puppeteer.
I don't know much about card games, but if you're willing to tell me what exactly you need, we could perhaps make it work. Of course I can research it as well.
Please let me know if you'd like to discuss details.