The present invention relates to viscoelastic gels and hydrogels made of autocrosslinked hyaluronic acid (ACP) mixed with hyaluronic acid crosslinked with BDDE (HBC) in a weight ratio from 5:95 to 50:50, for use in applications in ophthalmic surgery as antifibrotic gels.