Hamas has executed more than 30 Gazan Palestinians accused of collaborating with Israel, according to Palestinian news sources.