Here is my use case:
I have a lot of extensions installed. Most of them have background
page and I think they eat too much of my PC's memory.
I came up an idea to create an independent extension only consists of
a background page, which grants all the permission of extension API.
Now, I can rewrite those extensions by moving their background page's
script to content script.Then sending the source code to background
page and eval it.
The reason I'm doing so is because I want to keep background page
independent. For example, an extension uses context menu to do
something, I write chrome.contextMenus.create in that extension but
not in background.
BTW, I have two other questions:
1. Does my idea work to reduce memory usage?
2. Maybe I can use file writer API instead of eval?
> > <
chromium-extensions%2Bunsubscr...@chromium.org<
chromium-extensions%252Bunsubscr...@chromium.org>