Auto wrench or duplicator
Or you can modify the save file if you're feeling creative
There's also a console command if you prefer that way, it'd be a double for loop through all of the bricks, checking datablock and color, and then using an addevent method