CustomBangSearch
CustomBangSearch copied to clipboard
Store ddg bangs in storage.local
The current limit for storage.local is 5MB for Firefox and 10MB for Chrome. With these limits it should be possible to store all ddg bangs by default in storage.local. One would package a ddg-all.json (currently 1.7MB, thus fitting in the storage.local quota) with the plugin and on installation/setup load these into storage.local.
On usage, the plugin would then first search for custom bangs in storage.sync, if none are found do a lookup in storage.local (i.e. all ddg bangs packaged by default). An option could be provided to not fall back onto the ddg bangs in storage.local.
Additionally, if that is not enough storage for some reason one could use the unlimitedstorage permission (available in both Firefox and Chrome).
Hi, thanks for raising, definetly something I want to look into doing.
Just to note, there's been some discussion about an idea like this in #38 here.