JavaScript How to sync chrome bookmarks with server in extension using API sync chrome bookmarks with safari,sync chrome bookmarks with firefox,

I am creating a Chrome extension that allows you to view, update, create, and remove your Chrome bookmarks. I would also like to be able load and save a user's bookmarks through our server instead of syncing through a google account. The problem I'm having is that I'm not sure how we would sync these bookmarks across devices. Since the Chrome bookmarks API does not have any method(s) to load/sync a tree, I figure I will save each bookmark/folder in an array on the server such as

[{id: "", parentId: "", index: "", title: "", url: ""}, ...]

When a user logs into their account on a new device/browser, I obtain the bookmark/folder array from the server and loop through them. In the loop, I would use Chrome.bookmarks.get with the ID to check if that bookmark already exists, and if it does not, then use the create function to create that bookmark. Problem is, there is no way that I can see in the documentation to specify the ID of the newly created bookmark/folder. What if the bookmark/folder created on a new device/browser has a different ID then the original device/browser? Then using the get function (which requires you specify the ID you are looking for) would not allow me to compare bookmarks correctly. Is there another solution for this problem?

Answer:1

I have an ES6 / Aurelia app that I am using jasmine to test. The method I am trying to test looks something like this: update() { let vm = this; vm.getData() .then((response) => { ...

I have an ES6 / Aurelia app that I am using jasmine to test. The method I am trying to test looks something like this: update() { let vm = this; vm.getData() .then((response) => { ...

  1. unit testing logic apps
  2. unit testing logic
  3. unit testing business logic
  4. unit testing business logic c#
  5. unit testing database logic
  6. unit testing business logic layer
  7. unit testing business logic c# example

Imagine an object like this: var values = { "2": 1, "53": 2, "56": 4, "57": 9, "61": 2, "62": 16, "63": 2, "398": 24, ... } My goal is, to find the 10 object keys,...

Imagine an object like this: var values = { "2": 1, "53": 2, "56": 4, "57": 9, "61": 2, "62": 16, "63": 2, "398": 24, ... } My goal is, to find the 10 object keys,...

  1. object keys with spaces javascript
  2. object keys with condition
  3. object.keys with map
  4. object.keys with index
  5. object.keys with value
  6. object.keys with filter
  7. object.keys with foreach
  8. object with keys
  9. object with keys javascript
  10. object with keys typescript
  11. object with keys react
  12. object with keys to array
  13. object with keys react native
  14. object with keys c#
  15. object keys and values javascript
  16. object keys foreach
  17. object.keys for loop
  18. object keys and values js
  19. object.keys on enum
  20. object.keys for json

I work entering data online to a form that I would like to change the tabbing order but have had no luck using Greasemonkey and Scriptish. I am able to remove tabindexes of -1 to make fields ...

I work entering data online to a form that I would like to change the tabbing order but have had no luck using Greasemonkey and Scriptish. I am able to remove tabindexes of -1 to make fields ...

  1. setting tabindex using css
  2. setting tabindex in javascript
  3. setting tabindex in html
  4. setting tabindex in css
  5. setting tabindex in jquery
  6. setting tabindex jquery

I am using Express.js server. With cookie-parser I have opened this endpoint app.get("/s", (req,res) => { res.cookie("bsaSession", req.session.id) res.send("set cookie ok") }) When I ...

I am using Express.js server. With cookie-parser I have opened this endpoint app.get("/s", (req,res) => { res.cookie("bsaSession", req.session.id) res.send("set cookie ok") }) When I ...