Finely chop the onion and green onion.
Break the eggs into a bowl and whisk.
Add the prepared vegetables, salt, and pepper to the eggs and mix well.
Heat a pan with cooking oil.
Pour the egg mixture into the pan and cook over medium heat, stirring constantly.