I wanted to create an extension that required getting the information about the battle, what moves have been used so far etc. However, I'm not sure how I'd go about it.
I originally tried to use the websocket functionality to do what I wanted but I thought that'd be overkill since I didn't want to interact with anyone, but
just get an idea of what moves have been used in battle.
I then tried to use the protocol here at simultor.md but I was just unable to install `pokemon-showdown` using npm or bun. I just couldn't import it or use require to use it (it wasn't just for the extension where I had modules set to true in package.json, but I also tried it in a different random react project and the import failed there too). What could I use then so that in a browser extension, you can get the battle data of the page the extension is loaded into?
I originally tried to use the websocket functionality to do what I wanted but I thought that'd be overkill since I didn't want to interact with anyone, but
just get an idea of what moves have been used in battle.
I then tried to use the protocol here at simultor.md but I was just unable to install `pokemon-showdown` using npm or bun. I just couldn't import it or use require to use it (it wasn't just for the extension where I had modules set to true in package.json, but I also tried it in a different random react project and the import failed there too). What could I use then so that in a browser extension, you can get the battle data of the page the extension is loaded into?