Skip to content

Instantly share code, notes, and snippets.

@satyr
Created September 16, 2009 02:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satyr/187827 to your computer and use it in GitHub Desktop.
Save satyr/187827 to your computer and use it in GitHub Desktop.
CmdUtils.CreateCommand({
name: 'google bookmark example?',
description: '?',
preview: function gbe_preview(pb){
pb.innerHTML = '...';
CmdUtils.previewAjax(pb, {
url: 'http://www.google.com/bookmarks/?output=xml',
dataType: 'text',
success: function gbe_success(xml){
var {bookmarks} = XML(xml.replace(/<\?[^>]*>/, ''));
pb.innerHTML = [
<p><b>{b.title +''}</b> {b.url +''}</p>
for each(b in bookmarks.bookmark)].join('');
},
});
},
});
@paultnylund
Copy link

paultnylund commented Jul 18, 2016

Hi there,

I am looking for a method to display Google Bookmarks in a 3rd party app. Could you please explain what this code is doing? I see it's been 7 years since you posted this, but I would really appreciate your help. :)

Thanks,
Paul

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