How to save search results in the plugin for chrome using JS?

Started learning JS, and decided to write a small plugin for chrome on pure JS. The essence of the plugin is not really important here what problem I encountered. I need to save the search query and search results of Google, if the search results have changed (for the plugin) to report it. How you can implement it in terms of the algorithm, whether it is possible to save queries and search results to a file, and constantly check the current query results to be saved to a file. Perhaps you need to keep not the file but the internal storage (
I would be very grateful for any explanations, for a beginner and quite confused.
June 3rd 19 at 19:32
3 answers
June 3rd 19 at 19:34

By the way, storage of more than one:
June 3rd 19 at 19:36
Perhaps you need to explore a bit of API of chrome except for the JS, the life cycle of the Addons?
Well, or to begin not with the addon.
June 3rd 19 at 19:38
Keep in indexedDB (article on Habre).

Find more questions by tags JavaScriptExtensions for browsers