1

I am using the Addon SDK and jpm.

The addon I am trying to make is for a website that gives you a specific shell command to run, but the current functionality of the website just displays the code in a text box and asks you to copy it. I thought it will be nice to create an addon that takes the text from the text box and turns it into a button which automatically executes the command.

I am having a hard time understanding how to do this. From my searches I've found out that I need to use something called nsiProcess, but it seems like I can't use this process within my content script. I can 'require' it in my main.js but I don't know how to access it in my content script file.

Is there a way of doing this?

4

0 回答 0