Skip to content

Instantly share code, notes, and snippets.

@fabiolib
Forked from bgrins/export-chrome-bookmarks.js
Last active June 30, 2020 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiolib/41ed2ad6a54e183b473eb410c51e899f to your computer and use it in GitHub Desktop.
Save fabiolib/41ed2ad6a54e183b473eb410c51e899f 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.href
}).join("\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment