How to apply Color influence to multiple textures

I imported a map with a lot of materials (and thus textures). All the images are applied to their respective textures, but the problem is that the Color influence is disabled by default on all textures, and with that the models are grey. I could turn it on texture by texture, but the problem is that the map has more than 300 textures, thus making the procedure a lot tedious. Is there a way to enable the Color influence to all the textures at the same time without having the need of going one by bone?

I’m using 2.79 with the internal renderer (since my PC isn’t that great)

image

You might try a script that does this by iterating over the textures and enabling this, but I can’t help further right now due to issues with my computer at home.