{"action":"created","comment":{"url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls/comments/45544295","id":45544295,"diff_hunk":"@@ -125,6 +128,16 @@ $(function() {\n         }).then(clearResults);\n     };\n \n+    const removeBookmark = function() {\n+        const bookmark = results.find('.selected');\n+        const id = bookmark.find('.bookmarkUrl').data('id');\n+        chrome.bookmarks.remove(String(id), function() {\n+            selectNext();","path":"src/frontend/main.js","position":36,"original_position":36,"commit_id":"3310ddaf931af061383bd5a9bbb1fee2d3f53693","original_commit_id":"3310ddaf931af061383bd5a9bbb1fee2d3f53693","user":{"login":"YuriSolovyov","id":2168518,"avatar_url":"https://avatars.githubusercontent.com/u/2168518?v=3","gravatar_id":"","url":"https://api.github.com/users/YuriSolovyov","html_url":"https://github.com/YuriSolovyov","followers_url":"https://api.github.com/users/YuriSolovyov/followers","following_url":"https://api.github.com/users/YuriSolovyov/following{/other_user}","gists_url":"https://api.github.com/users/YuriSolovyov/gists{/gist_id}","starred_url":"https://api.github.com/users/YuriSolovyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuriSolovyov/subscriptions","organizations_url":"https://api.github.com/users/YuriSolovyov/orgs","repos_url":"https://api.github.com/users/YuriSolovyov/repos","events_url":"https://api.github.com/users/YuriSolovyov/events{/privacy}","received_events_url":"https://api.github.com/users/YuriSolovyov/received_events","type":"User","site_admin":false},"body":"What about removing last item? In that case next will be empty.","created_at":"2015-11-21T10:21:48Z","updated_at":"2015-11-21T10:21:48Z","html_url":"https://github.com/YuriSolovyov/fuzzymark/pull/34#discussion_r45544295","pull_request_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls/comments/45544295"},"html":{"href":"https://github.com/YuriSolovyov/fuzzymark/pull/34#discussion_r45544295"},"pull_request":{"href":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls/34","id":51406111,"html_url":"https://github.com/YuriSolovyov/fuzzymark/pull/34","diff_url":"https://github.com/YuriSolovyov/fuzzymark/pull/34.diff","patch_url":"https://github.com/YuriSolovyov/fuzzymark/pull/34.patch","issue_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/issues/34","number":34,"state":"open","locked":false,"title":"Ability to remove bookmarks","user":{"login":"ignat-zakrevsky","id":2878349,"avatar_url":"https://avatars.githubusercontent.com/u/2878349?v=3","gravatar_id":"","url":"https://api.github.com/users/ignat-zakrevsky","html_url":"https://github.com/ignat-zakrevsky","followers_url":"https://api.github.com/users/ignat-zakrevsky/followers","following_url":"https://api.github.com/users/ignat-zakrevsky/following{/other_user}","gists_url":"https://api.github.com/users/ignat-zakrevsky/gists{/gist_id}","starred_url":"https://api.github.com/users/ignat-zakrevsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignat-zakrevsky/subscriptions","organizations_url":"https://api.github.com/users/ignat-zakrevsky/orgs","repos_url":"https://api.github.com/users/ignat-zakrevsky/repos","events_url":"https://api.github.com/users/ignat-zakrevsky/events{/privacy}","received_events_url":"https://api.github.com/users/ignat-zakrevsky/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-20T20:45:53Z","updated_at":"2015-11-21T10:21:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64c24a39918be69c56e0cab3c9392a4d2359fe09","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls/34/commits","review_comments_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls/34/comments","review_comment_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/issues/34/comments","statuses_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/statuses/3310ddaf931af061383bd5a9bbb1fee2d3f53693","head":{"label":"YuriSolovyov:delete-action","ref":"delete-action","sha":"3310ddaf931af061383bd5a9bbb1fee2d3f53693","user":{"login":"YuriSolovyov","id":2168518,"avatar_url":"https://avatars.githubusercontent.com/u/2168518?v=3","gravatar_id":"","url":"https://api.github.com/users/YuriSolovyov","html_url":"https://github.com/YuriSolovyov","followers_url":"https://api.github.com/users/YuriSolovyov/followers","following_url":"https://api.github.com/users/YuriSolovyov/following{/other_user}","gists_url":"https://api.github.com/users/YuriSolovyov/gists{/gist_id}","starred_url":"https://api.github.com/users/YuriSolovyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuriSolovyov/subscriptions","organizations_url":"https://api.github.com/users/YuriSolovyov/orgs","repos_url":"https://api.github.com/users/YuriSolovyov/repos","events_url":"https://api.github.com/users/YuriSolovyov/events{/privacy}","received_events_url":"https://api.github.com/users/YuriSolovyov/received_events","type":"User","site_admin":false},"repo":{"id":45977365,"name":"fuzzymark","full_name":"YuriSolovyov/fuzzymark","owner":{"login":"YuriSolovyov","id":2168518,"avatar_url":"https://avatars.githubusercontent.com/u/2168518?v=3","gravatar_id":"","url":"https://api.github.com/users/YuriSolovyov","html_url":"https://github.com/YuriSolovyov","followers_url":"https://api.github.com/users/YuriSolovyov/followers","following_url":"https://api.github.com/users/YuriSolovyov/following{/other_user}","gists_url":"https://api.github.com/users/YuriSolovyov/gists{/gist_id}","starred_url":"https://api.github.com/users/YuriSolovyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuriSolovyov/subscriptions","organizations_url":"https://api.github.com/users/YuriSolovyov/orgs","repos_url":"https://api.github.com/users/YuriSolovyov/repos","events_url":"https://api.github.com/users/YuriSolovyov/events{/privacy}","received_events_url":"https://api.github.com/users/YuriSolovyov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YuriSolovyov/fuzzymark","description":"chrome ext for bookmarks with fuzzy search","fork":false,"url":"https://api.github.com/repos/YuriSolovyov/fuzzymark","forks_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/forks","keys_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/teams","hooks_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/hooks","issue_events_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/issues/events{/number}","events_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/events","assignees_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/assignees{/user}","branches_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/branches{/branch}","tags_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/tags","blobs_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/git/refs{/sha}","trees_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/statuses/{sha}","languages_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/languages","stargazers_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/stargazers","contributors_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/contributors","subscribers_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/subscribers","subscription_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/subscription","commits_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/commits{/sha}","git_commits_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/git/commits{/sha}","comments_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/comments{/number}","issue_comment_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/issues/comments{/number}","contents_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/contents/{+path}","compare_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/merges","archive_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/downloads","issues_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/issues{/number}","pulls_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls{/number}","milestones_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/milestones{/number}","notifications_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/labels{/name}","releases_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/releases{/id}","created_at":"2015-11-11T11:18:29Z","updated_at":"2015-11-16T10:29:51Z","pushed_at":"2015-11-20T20:48:06Z","git_url":"git://github.com/YuriSolovyov/fuzzymark.git","ssh_url":"git@github.com:YuriSolovyov/fuzzymark.git","clone_url":"https://github.com/YuriSolovyov/fuzzymark.git","svn_url":"https://github.com/YuriSolovyov/fuzzymark","homepage":"","size":144,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":3,"default_branch":"master"}},"base":{"label":"YuriSolovyov:master","ref":"master","sha":"6fbadc0d6e93a14ea1d09e251675960fd50d323d","user":{"login":"YuriSolovyov","id":2168518,"avatar_url":"https://avatars.githubusercontent.com/u/2168518?v=3","gravatar_id":"","url":"https://api.github.com/users/YuriSolovyov","html_url":"https://github.com/YuriSolovyov","followers_url":"https://api.github.com/users/YuriSolovyov/followers","following_url":"https://api.github.com/users/YuriSolovyov/following{/other_user}","gists_url":"https://api.github.com/users/YuriSolovyov/gists{/gist_id}","starred_url":"https://api.github.com/users/YuriSolovyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuriSolovyov/subscriptions","organizations_url":"https://api.github.com/users/YuriSolovyov/orgs","repos_url":"https://api.github.com/users/YuriSolovyov/repos","events_url":"https://api.github.com/users/YuriSolovyov/events{/privacy}","received_events_url":"https://api.github.com/users/YuriSolovyov/received_events","type":"User","site_admin":false},"repo":{"id":45977365,"name":"fuzzymark","full_name":"YuriSolovyov/fuzzymark","owner":{"login":"YuriSolovyov","id":2168518,"avatar_url":"https://avatars.githubusercontent.com/u/2168518?v=3","gravatar_id":"","url":"https://api.github.com/users/YuriSolovyov","html_url":"https://github.com/YuriSolovyov","followers_url":"https://api.github.com/users/YuriSolovyov/followers","following_url":"https://api.github.com/users/YuriSolovyov/following{/other_user}","gists_url":"https://api.github.com/users/YuriSolovyov/gists{/gist_id}","starred_url":"https://api.github.com/users/YuriSolovyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuriSolovyov/subscriptions","organizations_url":"https://api.github.com/users/YuriSolovyov/orgs","repos_url":"https://api.github.com/users/YuriSolovyov/repos","events_url":"https://api.github.com/users/YuriSolovyov/events{/privacy}","received_events_url":"https://api.github.com/users/YuriSolovyov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YuriSolovyov/fuzzymark","description":"chrome ext for bookmarks with fuzzy search","fork":false,"url":"https://api.github.com/repos/YuriSolovyov/fuzzymark","forks_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/forks","keys_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/teams","hooks_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/hooks","issue_events_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/issues/events{/number}","events_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/events","assignees_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/assignees{/user}","branches_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/branches{/branch}","tags_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/tags","blobs_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/git/refs{/sha}","trees_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/statuses/{sha}","languages_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/languages","stargazers_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/stargazers","contributors_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/contributors","subscribers_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/subscribers","subscription_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/subscription","commits_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/commits{/sha}","git_commits_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/git/commits{/sha}","comments_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/comments{/number}","issue_comment_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/issues/comments{/number}","contents_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/contents/{+path}","compare_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/merges","archive_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/downloads","issues_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/issues{/number}","pulls_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls{/number}","milestones_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/milestones{/number}","notifications_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/labels{/name}","releases_url":"https://api.github.com/repos/YuriSolovyov/fuzzymark/releases{/id}","created_at":"2015-11-11T11:18:29Z","updated_at":"2015-11-16T10:29:51Z","pushed_at":"2015-11-20T20:48:06Z","git_url":"git://github.com/YuriSolovyov/fuzzymark.git","ssh_url":"git@github.com:YuriSolovyov/fuzzymark.git","clone_url":"https://github.com/YuriSolovyov/fuzzymark.git","svn_url":"https://github.com/YuriSolovyov/fuzzymark","homepage":"","size":144,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls/34"},"html":{"href":"https://github.com/YuriSolovyov/fuzzymark/pull/34"},"issue":{"href":"https://api.github.com/repos/YuriSolovyov/fuzzymark/issues/34"},"comments":{"href":"https://api.github.com/repos/YuriSolovyov/fuzzymark/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YuriSolovyov/fuzzymark/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/YuriSolovyov/fuzzymark/statuses/3310ddaf931af061383bd5a9bbb1fee2d3f53693"}}}}