supermemory icon indicating copy to clipboard operation
supermemory copied to clipboard

Suggestion: Provide a button for batch import browser bookmark URLs

Open littlemoji opened this issue 10 months ago • 4 comments

Provide a button for batch import browser bookmark URLs Chrome browser(almost all mainstream browsers ) bookmarks are exported as an HTML file, so i think we can get the URLs by reading all the href attributes of <a> tag.

littlemoji avatar Apr 18 '24 11:04 littlemoji

Amazing idea. it's planned! Anyone wanna work on this one?

Dhravya avatar Apr 18 '24 20:04 Dhravya

is chrome.runtime.sendMessage({ type: "urlChange", content, url, spaces }); this function send data to api ? Since browser bookmarks may only provide URLs, what do type, content, and spaces signify?

littlemoji avatar Apr 19 '24 06:04 littlemoji

If the outcomes of the Q&A are based on the content from the method mentioned above, and given that the pages linked by the URLs might change, should users be allowed to set how frequently the content from these links is updated?

littlemoji avatar Apr 19 '24 06:04 littlemoji

Hi! Yes, chrome.runtime.sendMessage({ type: "urlChange", content, url, spaces }) is the function that sends data to the API. Naming is weird because earlier it used to be something else! haha We'll need one more function to send the URL only (And then render a browser to get the contents using browser rendering maybe)

what do type, content, and spaces signify?

In chrome extensions, the client and 'background script' (that can send requests to the API and store sensitive information like user credentials) communicate using something called "messages" messages are distinguished by 'types'. in the background script, there's a message listener and an if-else statement that basically filters the type to run a specific piece of code with some information (content and spaces) hope that helps!

Dhravya avatar Apr 19 '24 17:04 Dhravya