Cook onions in oil about 8-10 min. Set aside in a bowl. Add potatoes evenly and cover with oil. Cook on low heat for 20-30 minutes. Drain and transfer to another bowl.
In a bowl, whisk eggs with a pinch of salt + pepper. Add the cooled and drained onions and potato mixture to the bowl. Carefully mix together to combine.