Skip to content

Instantly share code, notes, and snippets.

@usametov
Forked from bgrins/export-chrome-bookmarks.js
Created October 29, 2017 02:44
Show Gist options
  • Save usametov/046209d7f9c66ad7d4f8b72d36343ad3 to your computer and use it in GitHub Desktop.
Save usametov/046209d7f9c66ad7d4f8b72d36343ad3 to your computer and use it in GitHub Desktop.
Reminder of how to export bookmarks from Chrome as text.
/*
Export bookmarks from Chrome as text.
Go to Bookmarks Manager->Organize->Export to HTML file.
Then open that file, open console and run this command:
*/
[].map.call(document.querySelectorAll("dt a"), function(a) {
return a.textContent + " - " + a.href
}).join("\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment