@statsfun I think there are a wide range of views and nuances to the issue of people in Gaza supporting or not supporting Hamas.
Many people did not like them, did not agree with terrorism, etc. The population of Gaza is young overall - a lot of people have never been able to vote in an election or had a credible alternative presented, and would have voted for a strong alternative that maybe had a plan to get the blockade lifted and improve opportunities for them. It's pretty much been a one-party-state for a long time, with no free elections.
In a one-party-state, especially one under external blockade, that party becomes the main provider and perceived protector, regardless of other things going on. And that goes beyond keeping the lights on and the streets clean. Hamas effectively controlled a 'black/grey market' of goods that people needed that weren't allowed through the blockade or that came through in insufficient amounts. For example, if you need a specialist baby formula, your only option might be to get that through the black market, otherwise your baby could get very sick (as a parent of a child who had severe CMPA, I've seen how bad that can be). So, as well as the people who absolutely would not want Hamas in power, there were people who didn't like what they were doing but either owed them or felt "at least they're getting things in that we need" (it's hard to want to bring down a government/power that you see as having saved your child's life).
Then there are people who have suffered greatly at the hands of the IDF and the blockade, are angry, and get drawn in to the rhetoric that Hamas could somehow avenge their losses and get Gaza its freedom again (spoiler: Hamas do not have the firepower or technology to do that and were a major factor in the evolution of the current situation). Before we condemn these, mostly young men, as all being evil, we should consider that they have endured a lot and been vulnerable to radicalisation, so de-radicalisation may well be an option. Living in what is experienced as effectively a large open-air prison is claustrophobic. There have been many conflicts in Gaza which left people with major injuries and trauma - a young boy who watched his father have to have his legs amputated due to injuries from the IDF, or whose sibling went out to play and was shot dead by a sniper, etc is unlikely to grow up believing that the people on "the other side of the fence" want peace. Hamas are very good at marketing when it comes to their target audience.
I wouldn't say there was an overwhelming support for Hamas itself or for terrorist attacks. There is a difference between armed resistance and terrorism, and I think some of the surveys don't have the nuance to distinguish this.
Now, Hamas and other groups can also present themselves as the last best hope for ordinary people when the tanks and soldiers come. No matter how much you dislike someone's politics or condemn their actions, if they're the only person offering to stand between you and a soldier coming to kill you, you might feel some gratitude. I don't think it's going to be as clearcut as this conflict either decimating or increasing support - like all politics and war, it's complicated...
Don't know if that answers your question, sorry, just done a night shift and straight into a full day of parenting so I'm massively sleep deprived...