I don't support the violence at all, but this isn't a (direct) result of imperialism.
After WW2, the Allies were like, "what do we do with all these Jews? We don't want them in our countries." Then they thought, "why not Jerusalem?" But a bunch of Arabs were living there, but the Allies really didn't want more Jews, so they just dumped them all in modern Israel, told the Arabs this is Jews' land now, and recognized Israel as a state. Palestine has a right to be pissed. So this isn't so much an imperialism problem as much as a racism problem.
But still, Hamas are evil fuckers that take shit too far. Israel definitely is not the good guy and is not helping the situation at all, but this kind of escalation just makes shit worse for everyone.