Skip to content

Instantly share code, notes, and snippets.

@awef
Created January 21, 2012 06:25
Show Gist options
  • Save awef/1651696 to your computer and use it in GitHub Desktop.
Save awef/1651696 to your computer and use it in GitHub Desktop.
bookmark_duplicate_bug.crx
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script>
(function(){
chrome.bookmarks.getChildren("1", function(res){
res.forEach(function(bookmark){
if(bookmark.url === "dummy://dummy/"){
chrome.bookmarks.update(bookmark.id, {title: ""+Math.random()});
}
});
});
})();
</script>
</head>
</html>
{
"name": "bookmark_duplicate_bug",
"version": "0",
"permissions" : [
"bookmarks"
],
"background_page": "background.html"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment