Do you have evidence of that? Because some polling has been done over the last few months, and it's been showing consistently high support for Hamas and the October 7th attacks in general. The reason why the Palestinian Authority hasn't held elections in the West Bank in ages is because Hamas would probably win them.
I shouldn't have to say this, but that of course does not mean that civilians deserve to be bombed.