CustomBangSearch icon indicating copy to clipboard operation
CustomBangSearch copied to clipboard

Store ddg bangs in storage.local

Open kelszo opened this issue 2 years ago • 1 comments

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).

kelszo avatar Aug 09 '23 22:08 kelszo

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.

psidex avatar Aug 10 '23 00:08 psidex