my solution was to scour craigslist until I found a good used portable unit. In the mean time at 7am and 7pm I had a towel I would put over the outside and a curtain I would hang over the inside...this wass of course in addition to taping cardboard over the side flaps. Trust me bro, I was PISSED when I checked that thing out on the first dark cycle. Mostly pissed because I hadn't thought of it, but also pissed because I spent a hundred bucks on a window unit that actually made life harder! Now it's in my veg room, which is 24 hour light anyway, so it doesn't matter...even if I switch to 18/6 I won't worry about the leak since it's veg.
FYI, the compressor won't run on a window unit if it is too cold outside (like 70 and below or somewhere in that range). So, my 4 600s were heating up my room, but the A/C wasn't kicking on. The portable unit doesn't have that problem
I know the feeling. They say plants can tolerate a soft consistent glow, but if my flower room isn't pitch, pitch, pitch black then I am in problem solving mode. Spraypainting the foam sounds good, but in my experience it takes about 4 coats of spray paint to make something light proof depending on the intensity of the light you are trying to get out.
Sorry if you are already pretty good at using craigslist, but find a nice part of town where everyone has A/C. Buy from someone whose central air went out and they used the unit for 2 weeks. Remember, you've found a seller with money whose primary interest is freeing up space. My unit was $600 new and I picked it up for $150, it was listed for $225. The thing heats, cools, dehumidifies, or can be just a fan.