chrome-extensions-reloader icon indicating copy to clipboard operation
chrome-extensions-reloader copied to clipboard

Any way to make an extension reload itself?

Open rzfzr opened this issue 2 years ago • 3 comments

After .setEnabled(id,false) the extension itself goes blank, maybe there is someway to spawn a process that re-enables and launches it before that?

rzfzr avatar Apr 24 '22 22:04 rzfzr

Hi, I'm not sure I understand. Can you please elaborate?

arikw avatar May 24 '22 13:05 arikw

Sure, I have a custom extension I developed that I only distribute to one other person, I do not want to publish it on the chrome store. So as an alternative, the extension should update itself, as it works with a node server running in the background, I already

  1. Download the newest version
  2. Replace the source files
  3. Use your code to begin reloading
  4. The user has to go manually re-enable the extension.

Ideally the last step shouldn't be necessary.

rzfzr avatar May 24 '22 14:05 rzfzr

The server is node, thought about making it reload it, saw that there was a convoluted way, where chrome has to be started with some development flags

rzfzr avatar May 24 '22 23:05 rzfzr