Backup Search Engines
-
@potmeklecbohdan My apologies, thank you! For some reason I'd gotten it into my head that my search engines started syncing around the same time the Android app came out, but obviously I was mistaken!
-
@luetage said in Backup Search Engines:
While testing this mod I noticed problems with Vivaldi's native/existing option to restore defaults. If you restore defaults and tick the option to keep custom searches, default searches you have edited will be doubled now (default + edited custom). When selected they will share the same name and the same keyword and in case one of them is the default for private search, this will be doubled too. It's quite a mess really, is this a known problem or will someone have to report this?
@luetage I've also noticed that after doing Reset to Default, some historyId values become duplicated. This hasn't seemed to cause me any problems so far, but it's probably not ideal.
-
@ukanuk With this mod you can make a backup of a clean state and then import the backup, instead of resetting to default. Compared to the native solution this will be clean and error free.
-
I just noticed that Vivaldi removed the SAVE button from the search settings UI. This is the case on latest snapshot, I'm unsure if it's the same for stable. In case you don't see a SAVE button, please load the latest version of this mod (original post edited).
-
@luetage It is also gone from the stable version, and I believe it has been since 2.10.
-
@luetage said in Backup Search Engines:
I just noticed that Vivaldi removed the SAVE button from the search settings UI. This is the case on latest snapshot, I'm unsure if it's the same for stable. In case you don't see a SAVE button, please load the latest version of this mod (original post edited).
I am using Vivaldi 2.12.1856.3 snapshot, before updating this mod I checked and I was seeing the save backup button and restore backup edit field, now I've updated the mod and restarted Vivaldi and I don't see them anymore, as if the mod doesn't load anymore.
Running in debug mode, console showsUncaught SyntaxError: Unexpected token ')' backup-search-engines.js:39
which should be
if ('engines' in engines && 'default' in engines && 'defaultPrivate' in engines) { _msgSearch('restore'); }); <- this line is not needed
it might be a copy/paste error on your side, please update the 1st post with the correction
-
@iAN-CooG Thanks, not a copy/paste error, I just deleted too much content. It doesn't restore the search in storage anymore. Fixed.
-
@luetage Thank you so much for this post! I just used to migrate my search engines from Vivaldi that I had in Windows to a new one in Linux
-
I tested the mod in a new snapshot and it works, but I noticed that Vivaldi keeps the deleted default search engines in the engine code. What this means is that a fresh backup will restore all default search engines on bottom when used. I wonder if we should clean the backup before copying it to clipboard.
edit: seems to have been the case only once, repeated restores didn't show default engines
-
Have a look at what it does when displaying all settings
(rn I have controls to backup/restore hooks
)
-
@potmeklecbohdan I know, it inserts the button and input field in another place too. That’s because the selector isn’t unique. No one else noticed this in over a year though, so I never bothered.
-
@potmeklecbohdan Do you need a fix? It’s a shame Vivaldi devs got rid of most of the individual IDs and classnames. I remember we talked to one dev a long time ago, when these changes had been freshly introduced to the toolbar buttons for navigation in the address bar. He mentioned that it was done for speed, but that the improvements were likely only miniscule. Speak: add a few hundred specific selectors back in and no one will notice. Well, that’s node.js for you…
-
@luetage No, I don’t. I used the All Settings section just randomly while playing with hooks.
But it makes me quite angry how they often do changes just to break mods… Maybe we should show them how poor the browser is w/o them?
-
@potmeklecbohdan They obviously break our mods intentionally, for they exactly know how bad Vivaldi is without them. See, it’s out of jealousy, because they aren’t allowed to use custom mods, so they can’t stand anyone else having a great time. It’s the reason why it took so long to implement native
custom.css
and it’s also the reason why there is no native javascript version for this. Tears of despair are running down my cheeks just thinking about it. -
@luetage Then there’s a question why don’t they just implement what’s easy & copy what’s harder? I tried to tell them about a simple fix (thanks Lilo for your help) that basically needed knowing of the bug and what the structure there looks like—it’s been 18 days & many snapshots… I give up! (trying to help them, not modding, ofc)
-
@potmeklecbohdan Good question, thank you for bringing it up. If you had simply reported a bug, I’m quite certain it would have long been dealt with. But you dared to include the solution, which is basically telling them what to do. Devs are like angry teenagers, tell them one thing and they do the opposite. This will never be fixed I’m afraid—and it’s all your fault.
-
@luetage said:
Devs are like angry teenagers, tell them one thing and they do the opposite.
It depends also on what & where they dev. If it’s closed source or a big company, there’s a big chance for this. Unfortunately, I only understand the philosophy of & have some experience with open source.
This will never be fixed I’m afraid—and it’s all your fault.
Err… sorry everyone who is affected
-
So, I'm very interested in this
, where is that button now? Can't find it lol. Thanks.
-
@npro Uh, which button? It should all be explained in the first post. If you can’t see the button in
vivaldi://settings/search
, just try to click on the site once, then the button should load, if it hasn’t already. Should you have a different problem please specify. Furthermore check console for errors in custom.js. -
@luetage It worked like a charm now, thanks and god bless you (I have looooots of search engines)