Backup Search Engines
-
@luetage
I edit my post, thanks. -
@ian-coog You can make the backup in any case, this gives you a clean json with the engines. The restore script will be done before the future snapshot comes out and you can use it then to get your engines back.
-
Ok, managed to automate setting of default engines, new version is up in first post and should work very well with the new backend. Haven’t had a single crash all this time, so we should be good. Still, profile backups are a good idea in any case.
-
@luetage Seems to work for backup at least
- Backed up profile (and Web Data just in case)
- Exported as JSON
- Reset engines
- Restarted Vivaldi just to make sure
- Imported JSON
Restored favicons (including the ones I manually added to the DB), sorting, even added the Suggest URL for Google (default missing).
One strange thing though - got a duplicate "bing" keyword. I use b for Bandcamp.
I'm assuming thatprepopulateId != 0
means it's the default one.{ "extensionId": "", "faviconUrl": "https://www.bing.com/sa/simg/bing_p_rr_teal_min.ico", "id": "3", "imagePostParams": "imageBin={google:imageThumbnailBase64}", "imageUrl": "https://www.bing.com/images/detail/search?iss=sbiupload&FORM=INCOH2{bing:Referral}#enterInsights", "keyword": "bing", "name": "Bing", "postParams": "", "prepopulateId": 3, "readOnly": false, "suggestPostParams": "", "suggestUrl": "https://www.bing.com/osjson.aspx?query=%s&language={language}", "url": "https://www.bing.com/search?q=%s&FORM=INCOH2{bing:Referral}" }, { "extensionId": "", "faviconUrl": "https://www.bing.com/sa/simg/bing_p_rr_teal_min.ico", "id": "78", "imagePostParams": "imageBin={google:imageThumbnailBase64}", "imageUrl": "https://www.bing.com/images/detail/search?iss=sbiupload&FORM=INCOH2{bing:Referral}#enterInsights", "keyword": "bing", "name": "Bing", "postParams": "", "prepopulateId": 0, "readOnly": false, "suggestPostParams": "", "suggestUrl": "https://www.bing.com/osjson.aspx?query=%s&language={language}", "url": "https://www.bing.com/search?q=%s&FORM=INCOH2{bing:Referral}" },
I also notice there are several values present in the
Web Data
table not exported in JSON. Here's the full column names list from the keywords table:"id", "short_name", "keyword", "favicon_url", "url", "safe_for_autoreplace", "originating_url", "date_created", "usage_count", "input_encodings", "suggest_url", "prepopulate_id", "created_by_policy", "last_modified", "sync_guid", "alternate_urls", "image_url", "search_url_post_params", "suggest_url_post_params", "image_url_post_params", "new_tab_url", "last_visited", "created_from_play_api", "is_active", "position"
Especially the
position
value is one I still wonder what does. It's shown as a BLOB in the tool, data type is VARCHAR - it's just a string of random hex values, not ASCII.safe_for_autoreplace = 1
also seems to indicate a default engine.BTW - I'm assuming this won't work for the old version? You might want to link to the old version on Github or somewhere in case there's a need to make a backup using the data types.
-
@pathduck Thanks for checking it out. This will only store data provided by the api, which should be enough. Starting from a fresh and clean backup, with neither errors nor duplicates, the restore functionality should be able to get back to the same clean state you had when making the backup. The only thing that will change are the IDs in the background, because Vivaldi keeps count of them.
-
@luetage Thanks
By the way, would you have a "quick" one-liner or basic method to just paste into the console to generate the backup, without the UI?
Sometimes I find it more convenient than having the mod loaded at all times
I tried just running the
backup()
function into the console but apparently it's not enough. -
@pathduck You have to leave out the msg part and the function itself, or you at least got to call the function. But to be honest I didn’t get it to work when I tried it either just now, it complains the document is not focused… I know the old code worked when we put it in the console. Not sure. On the other hand I’m not too concerned about it, it works just fine when issued from the UI itself. Might be they changed something in the backend so it isn’t possible any longer.
edit: this works, but you got to copy it out of the console manually…
vivaldi.searchEngines.getTemplateUrls((engines) => { console.info(JSON.stringify(engines)); });
-
I made a few updates over the last couple of days. The new version restores all search engines now, including search field, speed dials and the private versions of both. This should be good to go once everything settles in and the new version is up again for snapshot and in future for stable.
-
FYI search engine sync still isn't in the latest 5.2.2623.24 (Stable channel) (64-bit), see blog post https://vivaldi.com/blog/desktop/syncable-search-put-on-hold-for-now-vivaldi-browser-snapshot-2623-8
-
@ukanuk
HI, it was rejected for 5.2, we hope they add it back in one of the next snapshots for 5.3.Cheers, mib
-
@mib2berlin Yeah, I generally develop towards snapshot, as this is the version most users who mod are running. That the feature got taken out again was a surprise, but I’ll keep the mod up until new search will be implemented again, no point in going back now. We’ll have to wait and see, maybe they do something that will need fixing down the line.
-
@luetage Hello and good day to you,
can you please confirm if this mod is still working in Vivaldi 5.2 I have been trying this but isn't working for me anymore.
-
@aneesamjad Search engine changes were rolled back for 5.2.
-
@luetage so, I tried this version "2022.4.0" on multiple times, on multiple machines but it didn't worked. Fortunately I had version version "2021.10.0" available somewhere which worked flawlessly as expected.
-
@aneesamjad Yeah, the problem is as soon as the changes are implemented again, the old version of the mod will stop working. And the backups made with the old version cannot be imported into the new system, they’re incompatible.
-
This post is deleted! -
@kanishknishar Warning: Please make sure that the backup data you publish does not contain your private sensitive information. Otherwise, delete as soon as possible
-
@kanishknishar That’s backup data from an old Vivaldi version. Can’t be imported into a recent Vivaldi version after the change to the new setup. And you can’t import it with the old version of the mod either, it’s not even being stored in the same place/with the same tooling anymore.
-
@luetage this might be a hassle, but wouldn't it be possible for @kanishknishar to install an old, standalone version of V and install the mod, then update V, add the new version of the mod, and export to get the data in the new format?
-
@Aaron I deleted it just to be safe. I don't think there was any sensitive data. Was there any?
@legobuilder26 How old should I go?