{"action":"created","comment":{"url":"https://api.github.com/repos/mdn/webextensions-examples/pulls/comments/55454866","id":55454866,"diff_hunk":"@@ -0,0 +1,21 @@\n+{\n+  \"name\": \"Sample Commands Extension\",\n+  \"description\": \"Press Ctrl+Shift+Y to send an event (Command+Shift+Y on a Mac).\",\n+  \"homepage_url\": \"https://github.com/mdn/webextensions-examples/tree/master/commands\",\n+  \"manifest_version\": 2,\n+  \"version\": \"1.0\",\n+  \"background\": {\n+    \"scripts\": [\"background.js\"]\n+  },\n+  \"applications\": {\n+    \"gecko\": {\n+      \"id\": \"commands@mozilla.org\"\n+    }\n+  },\n+  \"commands\": {\n+    \"toggle-feature\": {\n+      \"suggested_key\": { \"default\": \"Ctrl+Shift+Y\" },","path":"commands/manifest.json","position":17,"original_position":17,"commit_id":"3e49113c4832b1287438b704f921ae2ad26775e9","original_commit_id":"3e49113c4832b1287438b704f921ae2ad26775e9","user":{"login":"wbamberg","id":432915,"avatar_url":"https://avatars.githubusercontent.com/u/432915?v=3","gravatar_id":"","url":"https://api.github.com/users/wbamberg","html_url":"https://github.com/wbamberg","followers_url":"https://api.github.com/users/wbamberg/followers","following_url":"https://api.github.com/users/wbamberg/following{/other_user}","gists_url":"https://api.github.com/users/wbamberg/gists{/gist_id}","starred_url":"https://api.github.com/users/wbamberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbamberg/subscriptions","organizations_url":"https://api.github.com/users/wbamberg/orgs","repos_url":"https://api.github.com/users/wbamberg/repos","events_url":"https://api.github.com/users/wbamberg/events{/privacy}","received_events_url":"https://api.github.com/users/wbamberg/received_events","type":"User","site_admin":false},"body":"Yes, sorry, I misread the docs, and your code should work in Chrome. I found this: https://stackoverflow.com/questions/19599717/chrome-commands-api, which helped.","created_at":"2016-03-09T00:37:40Z","updated_at":"2016-03-09T00:37:40Z","html_url":"https://github.com/mdn/webextensions-examples/pull/45#discussion_r55454866","pull_request_url":"https://api.github.com/repos/mdn/webextensions-examples/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/mdn/webextensions-examples/pulls/comments/55454866"},"html":{"href":"https://github.com/mdn/webextensions-examples/pull/45#discussion_r55454866"},"pull_request":{"href":"https://api.github.com/repos/mdn/webextensions-examples/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/mdn/webextensions-examples/pulls/45","id":61999830,"html_url":"https://github.com/mdn/webextensions-examples/pull/45","diff_url":"https://github.com/mdn/webextensions-examples/pull/45.diff","patch_url":"https://github.com/mdn/webextensions-examples/pull/45.patch","issue_url":"https://api.github.com/repos/mdn/webextensions-examples/issues/45","number":45,"state":"open","locked":false,"title":"Add an example for using the commands API","user":{"login":"matthewjwein","id":1216679,"avatar_url":"https://avatars.githubusercontent.com/u/1216679?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewjwein","html_url":"https://github.com/matthewjwein","followers_url":"https://api.github.com/users/matthewjwein/followers","following_url":"https://api.github.com/users/matthewjwein/following{/other_user}","gists_url":"https://api.github.com/users/matthewjwein/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewjwein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewjwein/subscriptions","organizations_url":"https://api.github.com/users/matthewjwein/orgs","repos_url":"https://api.github.com/users/matthewjwein/repos","events_url":"https://api.github.com/users/matthewjwein/events{/privacy}","received_events_url":"https://api.github.com/users/matthewjwein/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-07T23:30:10Z","updated_at":"2016-03-09T00:37:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49f3b278e94de2933d11ca9873f42b2a80b6a225","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mdn/webextensions-examples/pulls/45/commits","review_comments_url":"https://api.github.com/repos/mdn/webextensions-examples/pulls/45/comments","review_comment_url":"https://api.github.com/repos/mdn/webextensions-examples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mdn/webextensions-examples/issues/45/comments","statuses_url":"https://api.github.com/repos/mdn/webextensions-examples/statuses/3e49113c4832b1287438b704f921ae2ad26775e9","head":{"label":"matthewjwein:master","ref":"master","sha":"3e49113c4832b1287438b704f921ae2ad26775e9","user":{"login":"matthewjwein","id":1216679,"avatar_url":"https://avatars.githubusercontent.com/u/1216679?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewjwein","html_url":"https://github.com/matthewjwein","followers_url":"https://api.github.com/users/matthewjwein/followers","following_url":"https://api.github.com/users/matthewjwein/following{/other_user}","gists_url":"https://api.github.com/users/matthewjwein/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewjwein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewjwein/subscriptions","organizations_url":"https://api.github.com/users/matthewjwein/orgs","repos_url":"https://api.github.com/users/matthewjwein/repos","events_url":"https://api.github.com/users/matthewjwein/events{/privacy}","received_events_url":"https://api.github.com/users/matthewjwein/received_events","type":"User","site_admin":false},"repo":{"id":53365221,"name":"webextensions-examples","full_name":"matthewjwein/webextensions-examples","owner":{"login":"matthewjwein","id":1216679,"avatar_url":"https://avatars.githubusercontent.com/u/1216679?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewjwein","html_url":"https://github.com/matthewjwein","followers_url":"https://api.github.com/users/matthewjwein/followers","following_url":"https://api.github.com/users/matthewjwein/following{/other_user}","gists_url":"https://api.github.com/users/matthewjwein/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewjwein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewjwein/subscriptions","organizations_url":"https://api.github.com/users/matthewjwein/orgs","repos_url":"https://api.github.com/users/matthewjwein/repos","events_url":"https://api.github.com/users/matthewjwein/events{/privacy}","received_events_url":"https://api.github.com/users/matthewjwein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthewjwein/webextensions-examples","description":"Example Firefox add-ons created using the WebExtensions API","fork":true,"url":"https://api.github.com/repos/matthewjwein/webextensions-examples","forks_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/forks","keys_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/teams","hooks_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/hooks","issue_events_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/issues/events{/number}","events_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/events","assignees_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/assignees{/user}","branches_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/branches{/branch}","tags_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/tags","blobs_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/languages","stargazers_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/stargazers","contributors_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/contributors","subscribers_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/subscribers","subscription_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/subscription","commits_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/contents/{+path}","compare_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/merges","archive_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/downloads","issues_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/issues{/number}","pulls_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/labels{/name}","releases_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/releases{/id}","deployments_url":"https://api.github.com/repos/matthewjwein/webextensions-examples/deployments","created_at":"2016-03-07T22:56:14Z","updated_at":"2016-03-07T22:56:15Z","pushed_at":"2016-03-07T23:27:07Z","git_url":"git://github.com/matthewjwein/webextensions-examples.git","ssh_url":"git@github.com:matthewjwein/webextensions-examples.git","clone_url":"https://github.com/matthewjwein/webextensions-examples.git","svn_url":"https://github.com/matthewjwein/webextensions-examples","homepage":null,"size":748,"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":"mdn:master","ref":"master","sha":"df875e0189524dbfa2a9597cdff6efb553ada375","user":{"login":"mdn","id":7565578,"avatar_url":"https://avatars.githubusercontent.com/u/7565578?v=3","gravatar_id":"","url":"https://api.github.com/users/mdn","html_url":"https://github.com/mdn","followers_url":"https://api.github.com/users/mdn/followers","following_url":"https://api.github.com/users/mdn/following{/other_user}","gists_url":"https://api.github.com/users/mdn/gists{/gist_id}","starred_url":"https://api.github.com/users/mdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdn/subscriptions","organizations_url":"https://api.github.com/users/mdn/orgs","repos_url":"https://api.github.com/users/mdn/repos","events_url":"https://api.github.com/users/mdn/events{/privacy}","received_events_url":"https://api.github.com/users/mdn/received_events","type":"Organization","site_admin":false},"repo":{"id":40733543,"name":"webextensions-examples","full_name":"mdn/webextensions-examples","owner":{"login":"mdn","id":7565578,"avatar_url":"https://avatars.githubusercontent.com/u/7565578?v=3","gravatar_id":"","url":"https://api.github.com/users/mdn","html_url":"https://github.com/mdn","followers_url":"https://api.github.com/users/mdn/followers","following_url":"https://api.github.com/users/mdn/following{/other_user}","gists_url":"https://api.github.com/users/mdn/gists{/gist_id}","starred_url":"https://api.github.com/users/mdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdn/subscriptions","organizations_url":"https://api.github.com/users/mdn/orgs","repos_url":"https://api.github.com/users/mdn/repos","events_url":"https://api.github.com/users/mdn/events{/privacy}","received_events_url":"https://api.github.com/users/mdn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mdn/webextensions-examples","description":"Example Firefox add-ons created using the WebExtensions API","fork":false,"url":"https://api.github.com/repos/mdn/webextensions-examples","forks_url":"https://api.github.com/repos/mdn/webextensions-examples/forks","keys_url":"https://api.github.com/repos/mdn/webextensions-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdn/webextensions-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdn/webextensions-examples/teams","hooks_url":"https://api.github.com/repos/mdn/webextensions-examples/hooks","issue_events_url":"https://api.github.com/repos/mdn/webextensions-examples/issues/events{/number}","events_url":"https://api.github.com/repos/mdn/webextensions-examples/events","assignees_url":"https://api.github.com/repos/mdn/webextensions-examples/assignees{/user}","branches_url":"https://api.github.com/repos/mdn/webextensions-examples/branches{/branch}","tags_url":"https://api.github.com/repos/mdn/webextensions-examples/tags","blobs_url":"https://api.github.com/repos/mdn/webextensions-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdn/webextensions-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdn/webextensions-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdn/webextensions-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdn/webextensions-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/mdn/webextensions-examples/languages","stargazers_url":"https://api.github.com/repos/mdn/webextensions-examples/stargazers","contributors_url":"https://api.github.com/repos/mdn/webextensions-examples/contributors","subscribers_url":"https://api.github.com/repos/mdn/webextensions-examples/subscribers","subscription_url":"https://api.github.com/repos/mdn/webextensions-examples/subscription","commits_url":"https://api.github.com/repos/mdn/webextensions-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdn/webextensions-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdn/webextensions-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdn/webextensions-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdn/webextensions-examples/contents/{+path}","compare_url":"https://api.github.com/repos/mdn/webextensions-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdn/webextensions-examples/merges","archive_url":"https://api.github.com/repos/mdn/webextensions-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdn/webextensions-examples/downloads","issues_url":"https://api.github.com/repos/mdn/webextensions-examples/issues{/number}","pulls_url":"https://api.github.com/repos/mdn/webextensions-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/mdn/webextensions-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/mdn/webextensions-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdn/webextensions-examples/labels{/name}","releases_url":"https://api.github.com/repos/mdn/webextensions-examples/releases{/id}","deployments_url":"https://api.github.com/repos/mdn/webextensions-examples/deployments","created_at":"2015-08-14T19:55:54Z","updated_at":"2016-02-28T02:06:26Z","pushed_at":"2016-03-08T00:58:01Z","git_url":"git://github.com/mdn/webextensions-examples.git","ssh_url":"git@github.com:mdn/webextensions-examples.git","clone_url":"https://github.com/mdn/webextensions-examples.git","svn_url":"https://github.com/mdn/webextensions-examples","homepage":null,"size":900,"stargazers_count":88,"watchers_count":88,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":49,"mirror_url":null,"open_issues_count":7,"forks":49,"open_issues":7,"watchers":88,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mdn/webextensions-examples/pulls/45"},"html":{"href":"https://github.com/mdn/webextensions-examples/pull/45"},"issue":{"href":"https://api.github.com/repos/mdn/webextensions-examples/issues/45"},"comments":{"href":"https://api.github.com/repos/mdn/webextensions-examples/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/mdn/webextensions-examples/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/mdn/webextensions-examples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mdn/webextensions-examples/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/mdn/webextensions-examples/statuses/3e49113c4832b1287438b704f921ae2ad26775e9"}}}}