Made a simple application for chrome which displays a popup, but I need to add parameters for the application. How to do it? Where to store data? Just interested in the question of how to use the extension to change the information on the site and not in the popup?
1 answer
Store where it is more convenient depends on the type of application:
Many tabular data - indexedDb or Web SQL.
If there is not enough data - it is possible in localStorage.
You can change the information by injection of js into the page. content_scripts or chrome.tabs.executeScript .
- Is it possible to take injection sites from localstorage? - zoinx2012
- and maybe if you know, write where you can get more detailed information on how to change the content through these injections) - zoinx2012
- It is possible, but the database is better for the list. But you can store an array of sites in
jsonas astringand inlocalStorage. Change the content is absolutely the same as on its website. - Artem Gorlachev - How then can I get local storage on the injection script? localstorage which I saved in option.html .. - zoinx2012
|