Many Palestinians prayed outside demolished mosques to mark the end of the Muslim fasting month of Ramadan.