Apply strokes to all glyphs

Wondering if there’s a way to set it to “fill” in the same batch way?

The script allows to remove path attributes as well.