Skip to content

Instantly share code, notes, and snippets.

@crismanNoble
Created August 28, 2012 19:41
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save crismanNoble/3503243 to your computer and use it in GitHub Desktop.
Save crismanNoble/3503243 to your computer and use it in GitHub Desktop.
Importing Chrome Bookmarks to Kippt
//Export Chrome bookmarks as html
//Manually add a id="target" to the <d1> under the <h3> of the folder you want to import
//Initialize your list
var list = '';
//save the children of your target
var target = document.getElementById('target').children;
//grab all the titles and links, format them for easy importation to Kippt API
//start at 1 because the first child is an empty <p>
for (var i = 1; i < target.length; i++) { list = list + "{\"title\": \""+document.getElementById('target').children[i].children[0].innerHTML + '\", \"url\": \"' + document.getElementById('target').children[i].children[0].href + '\"}, ';}
return list;
@lukezhangstudio
Copy link

thanks mate :)

@renatovico
Copy link

\o

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment