How to see vivaldi.prefs without enabling sync?
-
I sometimes need to see how data are stored in the sync storage (
vivaldi.prefs
) (to write/update some modifications, of course), but don't want to use sync because it's quite complicated to not overwrite my preferences etc.Does somebody know an easy way to access the sync storage like with
chrome.storage.local.get(console.log)
? -
@potmeklecbohdan I suspect there is no api out for this, or we would have already started messing with sync storage directly.
-
-
@potmeklecbohdan Changing vivaldi.prefs only influences the sync storage passively. You change a preference and when sync is enabled Vivaldi then sync your preferences β but this doesn't mean that we are changing sync storage directly. There seems to be a
vivaldi.prefs.get
command, therefore something likevivaldi.prefs.get(null, function(items) { const getKeys = Object.keys(items); console.log(getKeys); });
should theoretically work, but it doesn't. Haven't really looked into it yet, maybe I'm missing something.
-
@luetage @potmeklecbohdan maybe the easiest (and most realistic) would be for sometime with free time to catalogue all the available options.
The easiest (and most unrealistic) is be for Vivaldi to document all of these internal options.
-
@LonM The realistic one would be nice, but we'd have to update it every time new preferences are synced. And if it works like the local storage, you won't know about some items until you change the corresponding setting.
I think the easiest and most realistic solution would be adding the same possibility (
vivaldi.prefs.get(function)
). -
@luetage said:
Changing vivaldi.prefs only influences the sync storage passively. You change a preference and when sync is enabled Vivaldi then sync your preferences β but this doesn't mean that we are changing sync storage directly.
I know, but I needed to name it. If you want you can add βlocalβ for yourself.
-
Hooray!
%vivaldi_dir%/resources/vivaldi/prefs_definitions.json
should be basic version of what I was looking for :smiling_face_with_open_mouth: :smiling_face_with_open_mouth_smiling_eyes: :smiling_face_with_open_mouth_closed_eyes: -
@potmeklecbohdan Seek and you will find : P
-
Hmm, nice pref (I mean the enum values)
// vivaldi.sync. "is_using_separate_encryption_password": { "type": "enum", "enum_values": { "unknown": 0, "aye": 1, "nay": 2 }, "default": "unknown", "syncable": false }