Skip to content

Instantly share code, notes, and snippets.

@korzio
Created January 8, 2019 17:55
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 korzio/3a1735b0e5c8db65d2f5f2c2940b7c1c to your computer and use it in GitHub Desktop.
Save korzio/3a1735b0e5c8db65d2f5f2c2940b7c1c to your computer and use it in GitHub Desktop.
copy chrome bookmarks as links to markdown
// select #list in DevTools
// execute in console
copy([...$0.children].filter(a => a.tagName.toLowerCase() === 'bookmarks-item').map(a => `[${a.$['website-title'].innerText}](${a.$['website-url'].innerText})`).join(''))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment