Well no they didn't want hamas in power... but did help them because they didn't want fateh more.
The premier's policy of treating the terror group as a partner, at the expense of Abbas and Palestinian statehood, has resulted in wounds that will take Israel years to heal from
www.timesofisrael.com
For years, the various governments led by Benjamin Netanyahu took an approach that divided power between the Gaza Strip and the West Bank — bringing Palestinian Authority President Mahmoud Abbas to his knees while making moves that propped up the Hamas terror group.
The idea was to prevent Abbas — or anyone else in the Palestinian Authority’s West Bank government — from advancing toward the establishment of a Palestinian state.
Thus, amid this bid to impair Abbas, Hamas was upgraded from a mere terror group to an organization with which Israel held indirect negotiations via Egypt, and one that was allowed to receive infusions of cash from abroad.
Hamas was also included in discussions about increasing the number of work permits Israel granted to Gazan laborers, which kept money flowing into Gaza, meaning food for families and the ability to purchase basic products.
Most of the time, Israeli policy was to treat the Palestinian Authority as a burden and Hamas as an asset. Far-right MK Bezalel Smotrich, now the finance minister in the hardline government and leader of the Religious Zionism party, said so himself in 2015.
According to various reports, Netanyahu made a similar point at a Likud faction meeting in early 2019, when he was quoted as saying that those who oppose a Palestinian state should support the transfer of funds to Gaza, because maintaining the separation between the Palestinian Authority in the West Bank and Hamas in Gaza would prevent the establishment of a Palestinian state.
But yeah. Those Palestinian kids are more responsible for hamas because their parents " may " have voted in hamas before they were born.