Total posts : 45366
The charger has a half-wave rectifier which will cause hum. Some are also of the switching supply type and those too cause hum.
Just tear open the charger and either add a full bridge rectifier and at least a 2200uF electrolytic cap for filtering. If it’s a switching type supply, just add more filtering with an electrolytic cap on the output, around 1000uF or so.