Created
January 21, 2012 06:25
-
-
Save awef/1651696 to your computer and use it in GitHub Desktop.
bookmark_duplicate_bug.crx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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