This is a simple tool to help resolve bookmark duplication that sometimes happens when using Vivaldi Sync.
Clone the project or download it as a zip
- Node.js, tested with
v13.2.0
Use case #1, manual:
- Copy your
Bookmarksfile from Vivaldi's profile directory into this directory. - Execute
npm run start. - Close Vivaldi and copy
Bookmarksback into Vivaldi's profile directory.
Use case #2, semi-automated:
-
Provide a
paths.tsfile containing a default export which is an array of strings, each element being a full path to aBookmarksfile of a Vivaldi instance (see example below).- By default, original and cleaned up file will be written to the tool's root directory
- However, if in
config.tsWRITE_CLEAN_BOOKMARKS_IN_PLACEistrue, then the clean file will be written directly to the source directory, in which case the respective Vivaldi instance should be closed before running the tool
-
Execute
npm run start.
paths.ts example on Windows with two Vivaldi instances:
const paths = [
`C:\\Users\\<USERNAME>\\My Program Files\\Vivaldi Snapshot\\User Data\\Default\\Bookmarks`,
`C:\\Users\\<USERNAME>\\AppData\\Local\\Vivaldi\\User Data\\Default\\Bookmarks`
];
export default paths;Untested on other platforms, but should work the same way.
- You can find each Vivaldi instance's profile directory by going to
Vivaldi -> Help -> Aboutand looking forProfile Path.
In use case #1, or #2 when WRITE_CLEAN_BOOKMARKS_IN_PLACE is set to true,
- the cleaned up bookmarks file will appear in the place of the old one (
Bookmarks) - the original
Bookmarksfile will be renamed toBookmarks_originalin case you need it.
Otherwise, if paths are provided in use case #2 and WRITE_CLEAN_BOOKMARKS_IN_PLACE is false, the original source directory will be prepended to the output file names to help you identify each one. In that case you must manually copy each one to its original directory and then rename it. Theoretically, for multiple instances synced to the same account, it should be possible to just use the same cleaned up file.
Automate copying bookmarks from Vivaldi's dir and back into itHave a way to select which bookmark files are processed (if multiple are provided)Implement a way to select which duplicates are removed- Have the CLI prompt for settings, e.g. input and output file name and
WRITE_CLEAN_BOOKMARKS_IN_PLACE - Add tests
- Kamen Minkov - Initial work
This project is licensed under the MIT License - see the LICENSE file for details
Thanks to the whole Vivaldi team for making an awesome browser.
This tool is to be used without any warranty, i.e. I am not responsible for any data loss that might occur. Always have a copy of your bookmarks in a safe place before using this tool.
I am not affiliated in any way with Vivaldi Technologies besides being a user of their products.