Chrome Extensions: Can I run a game on them?

I’m looking into chrome extensions, and I was wondering if it’s possible to change a specific website to add a box and run a game on it.

I believe I can change the website, no problem. But I’m having trouble figuring out what I can use to run a game in there.

Do have in mind that I’m relatively new to web dev (but not to code).

Thanks in advance!