Skip to content

Instantly share code, notes, and snippets.

@tik0
Forked from bgrins/export-chrome-bookmarks.js
Last active January 3, 2018 11:39
Show Gist options
  • Save tik0/ca5840545f46b7fccd04eb8aab97c02a to your computer and use it in GitHub Desktop.
Save tik0/ca5840545f46b7fccd04eb8aab97c02a 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 with chrome, open console (Ctrl+Shift+J) 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