Cover the salt cod with cold water in a lidded container, refrigerate, and soak for 24 hours, changing the water three times. Taste a small flake before cooking. It should be pleasantly seasoned, not sharply salty. If it is, change the water and soak a few more hours.
Drain the cod, pat it dry, and pull it into thin shreds with your fingers, discarding any bones or bits of skin. Slice the onions and garlic. Cut the potatoes into matchsticks and dry them thoroughly in a clean towel.
Heat the sunflower or canola oil in a 30 cm / 12-inch deep-sided skillet to 350 F / 175 C. Fry the potatoes in 3 batches of about 150 g for 3 to 4 minutes each, stirring, until pale gold and crisp. Lift them out with a spider and drain on the paper towel-lined baking sheet.
Carefully ladle all but 1 tbsp of the frying oil into a heatproof bowl. Add the olive oil and set the skillet over medium heat. Cook the onions, garlic and bay leaves for 10 to 12 minutes, stirring, until soft and translucent but not browned. Add the shredded cod and cook for 4 to 5 minutes until the strands turn opaque and start to separate. Remove the bay leaves.
Reduce the heat to low and stir in the fried potatoes. Pour in the beaten eggs and stir gently and constantly for 1 to 2 minutes, until they look glossy and slightly wet. Take the skillet off the heat right away and keep folding for 1 more minute. Taste, and add salt only if needed.
Fold in half the olives and parsley. Spoon onto a warm platter, scatter the rest on top, and serve within 10 minutes.