{"action":"created","comment":{"url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls/comments/51497180","id":51497180,"diff_hunk":"@@ -85,3 +85,17 @@ chrome.omnibox.onInputEntered.addListener( function(text) {\n         chrome.tabs.update(tabs[0].id, {url: \"https://duckduckgo.com/?q=\"+encodeURIComponent(text)});\n     });\n });\n+\n+//This adds Context Menu when user select some text.\n+//create context menu\n+chrome.contextMenus.create({\n+    title : 'Search anonymously on DuckDuckGo',","path":"js/background.js","position":8,"original_position":8,"commit_id":"339d04f276a4927618b03940e5de29a0c9eb52b6","original_commit_id":"339d04f276a4927618b03940e5de29a0c9eb52b6","user":{"login":"mrshu","id":461491,"avatar_url":"https://avatars.githubusercontent.com/u/461491?v=3","gravatar_id":"","url":"https://api.github.com/users/mrshu","html_url":"https://github.com/mrshu","followers_url":"https://api.github.com/users/mrshu/followers","following_url":"https://api.github.com/users/mrshu/following{/other_user}","gists_url":"https://api.github.com/users/mrshu/gists{/gist_id}","starred_url":"https://api.github.com/users/mrshu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrshu/subscriptions","organizations_url":"https://api.github.com/users/mrshu/orgs","repos_url":"https://api.github.com/users/mrshu/repos","events_url":"https://api.github.com/users/mrshu/events{/privacy}","received_events_url":"https://api.github.com/users/mrshu/received_events","type":"User","site_admin":false},"body":"@nirajkaushal would it be possible to use the `%s` placeholder here as described in [the docs](https://developer.chrome.com/extensions/contextMenus#property-create-createProperties)? That way we can use the same `Search DuckDuckGo for \"%s\"` here as we do in Firefox for instance\r\n\r\n![](https://duckduckgo.com/extensions/thanks/images/context-search.png)","created_at":"2016-02-01T23:11:34Z","updated_at":"2016-02-01T23:11:34Z","html_url":"https://github.com/duckduckgo/chrome-zeroclickinfo/pull/17#discussion_r51497180","pull_request_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls/comments/51497180"},"html":{"href":"https://github.com/duckduckgo/chrome-zeroclickinfo/pull/17#discussion_r51497180"},"pull_request":{"href":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls/17","id":57770381,"html_url":"https://github.com/duckduckgo/chrome-zeroclickinfo/pull/17","diff_url":"https://github.com/duckduckgo/chrome-zeroclickinfo/pull/17.diff","patch_url":"https://github.com/duckduckgo/chrome-zeroclickinfo/pull/17.patch","issue_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/issues/17","number":17,"state":"open","locked":false,"title":"New Feature: Create Context Menu on text selection","user":{"login":"nirajkaushal","id":8850541,"avatar_url":"https://avatars.githubusercontent.com/u/8850541?v=3","gravatar_id":"","url":"https://api.github.com/users/nirajkaushal","html_url":"https://github.com/nirajkaushal","followers_url":"https://api.github.com/users/nirajkaushal/followers","following_url":"https://api.github.com/users/nirajkaushal/following{/other_user}","gists_url":"https://api.github.com/users/nirajkaushal/gists{/gist_id}","starred_url":"https://api.github.com/users/nirajkaushal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirajkaushal/subscriptions","organizations_url":"https://api.github.com/users/nirajkaushal/orgs","repos_url":"https://api.github.com/users/nirajkaushal/repos","events_url":"https://api.github.com/users/nirajkaushal/events{/privacy}","received_events_url":"https://api.github.com/users/nirajkaushal/received_events","type":"User","site_admin":false},"body":"This commit add context menu when user select some text and make right-click.\r\nUser can search by clicking on that menu.\r\n ","created_at":"2016-01-31T14:49:40Z","updated_at":"2016-02-01T23:11:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8b2fa25ed90ae35e4f55269d649352a5ae00184","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls/17/commits","review_comments_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls/17/comments","review_comment_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/issues/17/comments","statuses_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/statuses/339d04f276a4927618b03940e5de29a0c9eb52b6","head":{"label":"nirajkaushal:master","ref":"master","sha":"339d04f276a4927618b03940e5de29a0c9eb52b6","user":{"login":"nirajkaushal","id":8850541,"avatar_url":"https://avatars.githubusercontent.com/u/8850541?v=3","gravatar_id":"","url":"https://api.github.com/users/nirajkaushal","html_url":"https://github.com/nirajkaushal","followers_url":"https://api.github.com/users/nirajkaushal/followers","following_url":"https://api.github.com/users/nirajkaushal/following{/other_user}","gists_url":"https://api.github.com/users/nirajkaushal/gists{/gist_id}","starred_url":"https://api.github.com/users/nirajkaushal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirajkaushal/subscriptions","organizations_url":"https://api.github.com/users/nirajkaushal/orgs","repos_url":"https://api.github.com/users/nirajkaushal/repos","events_url":"https://api.github.com/users/nirajkaushal/events{/privacy}","received_events_url":"https://api.github.com/users/nirajkaushal/received_events","type":"User","site_admin":false},"repo":{"id":50663843,"name":"chrome-zeroclickinfo","full_name":"nirajkaushal/chrome-zeroclickinfo","owner":{"login":"nirajkaushal","id":8850541,"avatar_url":"https://avatars.githubusercontent.com/u/8850541?v=3","gravatar_id":"","url":"https://api.github.com/users/nirajkaushal","html_url":"https://github.com/nirajkaushal","followers_url":"https://api.github.com/users/nirajkaushal/followers","following_url":"https://api.github.com/users/nirajkaushal/following{/other_user}","gists_url":"https://api.github.com/users/nirajkaushal/gists{/gist_id}","starred_url":"https://api.github.com/users/nirajkaushal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirajkaushal/subscriptions","organizations_url":"https://api.github.com/users/nirajkaushal/orgs","repos_url":"https://api.github.com/users/nirajkaushal/repos","events_url":"https://api.github.com/users/nirajkaushal/events{/privacy}","received_events_url":"https://api.github.com/users/nirajkaushal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nirajkaushal/chrome-zeroclickinfo","description":"Chrome Extension using the DuckDuckGo Zero-click Info API","fork":true,"url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo","forks_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/forks","keys_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/teams","hooks_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/hooks","issue_events_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/issues/events{/number}","events_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/events","assignees_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/assignees{/user}","branches_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/branches{/branch}","tags_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/tags","blobs_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/git/refs{/sha}","trees_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/statuses/{sha}","languages_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/languages","stargazers_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/stargazers","contributors_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/contributors","subscribers_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/subscribers","subscription_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/subscription","commits_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/commits{/sha}","git_commits_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/git/commits{/sha}","comments_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/comments{/number}","issue_comment_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/issues/comments{/number}","contents_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/contents/{+path}","compare_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/merges","archive_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/downloads","issues_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/issues{/number}","pulls_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/pulls{/number}","milestones_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/milestones{/number}","notifications_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/labels{/name}","releases_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/releases{/id}","deployments_url":"https://api.github.com/repos/nirajkaushal/chrome-zeroclickinfo/deployments","created_at":"2016-01-29T13:25:48Z","updated_at":"2016-01-29T13:25:49Z","pushed_at":"2016-01-31T14:35:10Z","git_url":"git://github.com/nirajkaushal/chrome-zeroclickinfo.git","ssh_url":"git@github.com:nirajkaushal/chrome-zeroclickinfo.git","clone_url":"https://github.com/nirajkaushal/chrome-zeroclickinfo.git","svn_url":"https://github.com/nirajkaushal/chrome-zeroclickinfo","homepage":"","size":12893,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"duckduckgo:master","ref":"master","sha":"123cf7760b1a82edc0c7ce38cd404a81fd892a96","user":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"repo":{"id":3184563,"name":"chrome-zeroclickinfo","full_name":"duckduckgo/chrome-zeroclickinfo","owner":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/duckduckgo/chrome-zeroclickinfo","description":"Chrome Extension using the DuckDuckGo Zero-click Info API","fork":false,"url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo","forks_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/forks","keys_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/teams","hooks_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/hooks","issue_events_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/issues/events{/number}","events_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/events","assignees_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/assignees{/user}","branches_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/branches{/branch}","tags_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/tags","blobs_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/git/refs{/sha}","trees_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/statuses/{sha}","languages_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/languages","stargazers_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/stargazers","contributors_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/contributors","subscribers_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/subscribers","subscription_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/subscription","commits_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/commits{/sha}","git_commits_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/git/commits{/sha}","comments_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/comments{/number}","issue_comment_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/issues/comments{/number}","contents_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/contents/{+path}","compare_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/merges","archive_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/downloads","issues_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/issues{/number}","pulls_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls{/number}","milestones_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/milestones{/number}","notifications_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/labels{/name}","releases_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/releases{/id}","deployments_url":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/deployments","created_at":"2012-01-15T16:46:38Z","updated_at":"2016-01-31T17:37:50Z","pushed_at":"2016-01-31T14:49:40Z","git_url":"git://github.com/duckduckgo/chrome-zeroclickinfo.git","ssh_url":"git@github.com:duckduckgo/chrome-zeroclickinfo.git","clone_url":"https://github.com/duckduckgo/chrome-zeroclickinfo.git","svn_url":"https://github.com/duckduckgo/chrome-zeroclickinfo","homepage":"","size":12909,"stargazers_count":46,"watchers_count":46,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":3,"forks":24,"open_issues":3,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls/17"},"html":{"href":"https://github.com/duckduckgo/chrome-zeroclickinfo/pull/17"},"issue":{"href":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/issues/17"},"comments":{"href":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/duckduckgo/chrome-zeroclickinfo/statuses/339d04f276a4927618b03940e5de29a0c9eb52b6"}}}}