How to make firefox extension run js on specified domain

Sunday, July 6, 2014

I am new to Firefox add-on development. I had made a chrome extension in past, which run only on a domain say "", and execute my js file as soon as that domain is opened say "my.js"

I just wish to import it in Firefox also.. How can this be done ?

I tried reading from Firefox docs but was unable to understand. Thank you in advance.. :D