Export Chrome bookmarks as text

Costas

Administrator
Staff member
JavaScript:
//src - https://gist.github.com/bgrins/5700426
//add reference to jQuery lib with :
//<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>

/*
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");

similar - python export with jQueryUI Accordion - https://github.com/TheInsomniac/browser-bookmarks
 
Top