Shameless (related) plug: Check out broader cellular-automata sim with custom update rules you can define in json (and run the game on the page itself).
https://aperocky.com/cellular-automata/
This allows for more "block state" too in addition to just the black and white for GOL. Also allows some time based rules (i.e. change based off block age that it stayed unchanged).
I've gravitated to essentially a file description (and the corresponding parser) to set up the rules - this makes making and adding rules easier.