Cut onions and garlic, fry them in butter or olive oil until caramelized.
While the onions are cooking, boil the cod. Place in boiling water for a few minutes.
Lightly beat the eggs. You can add a little cream (although it is not necessary).
Add the drained cod fillet to the cooked but still cooking onions. Stir fry for another minute to combine.
Remove the pan from the heat and pour the egg mixture into the mixture while stirring. The eggs should begin to thicken and bind together, but don't wait for them to harden.
Add potato chips, parsley and sliced olives.