Clean and prepare the shrimp thoroughly.
Finely chop the onion and green onion.
Add oil to the pan and stir-fry the shrimp first.
Add the chopped onion and green onion and stir-fry together.
Add the rice and mix well with the other ingredients while stir-frying.
Season with soy sauce and pepper to taste.
Stir-fry evenly to finish.