A
A
adamdickins22020-02-21 14:15:23
JavaScript
adamdickins2, 2020-02-21 14:15:23

How to connect external file to firefox extension?

Hello.
My main task is to make just an analogue of the imacros extension for firefox.
In older versions of imacros, there was a great opportunity to write code in JS and then play it back.

In this regard, I want to write an extension that will take an external file (C:\\ext\file.js)
and reproduce the code from the external file through the eval() command.

Please provide a working example.

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-02-21
@Kozack

Try experimenting with the FileSystem API . There is nothing more to suggest.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question