The reported method is fiddly. When you choose ladder or quick game, wait for "opponent found," then move the cursor quickly to the left, behind the character named Chouji. The cursor changes when you are in the right spot. Click immediately, type the code, and press Enter.
Code lists circulate on cheat sites, though browser-based games are patched often enough that many stop working. Expect to test more than one.