Heat oil in a wide pan.
Add mustard seeds, urad dal, and chana dal.
Once the mustard seeds start crackling add the onions and green chili.
Saute the onion till it turns golden brown color.
Add hing/asafoetida powder.
Then add salt, cooked/leftover rice and mix well.
Your Onion rice is ready to serve