176/205/263: reworked the cross-browser version