Did your friend put any sort of chemicals in the tank? Coz i know things such as pimafix and melafix can sometimes cause bubbles, but not quite that bad...
Looks that it could be protein scum, on the surface. Sometimes, your fish excretes undigested proteins which lead to certain process.. There are several chemical solutions, or maybe you can try a commercial foam fractionator