{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/refined-github/pulls/comments/53544566","id":53544566,"diff_hunk":"@@ -51,6 +52,24 @@ function addReleasesTab() {\n \t}\n }\n \n+function addBlameParentLinks() {\n+\tlet pathname = location.pathname;","path":"extension/content.js","position":13,"original_position":13,"commit_id":"d0c9ea33660860226732a010db9d86c014488d55","original_commit_id":"d0c9ea33660860226732a010db9d86c014488d55","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"body":"Really no need making this a variable. Just use `location.pathname` inline.","created_at":"2016-02-20T04:50:44Z","updated_at":"2016-02-20T04:50:44Z","html_url":"https://github.com/sindresorhus/refined-github/pull/24#discussion_r53544566","pull_request_url":"https://api.github.com/repos/sindresorhus/refined-github/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/refined-github/pulls/comments/53544566"},"html":{"href":"https://github.com/sindresorhus/refined-github/pull/24#discussion_r53544566"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/refined-github/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/refined-github/pulls/24","id":59863765,"html_url":"https://github.com/sindresorhus/refined-github/pull/24","diff_url":"https://github.com/sindresorhus/refined-github/pull/24.diff","patch_url":"https://github.com/sindresorhus/refined-github/pull/24.patch","issue_url":"https://api.github.com/repos/sindresorhus/refined-github/issues/24","number":24,"state":"open","locked":false,"title":"Add blame parent links next to each commit","user":{"login":"hkdobrev","id":506129,"avatar_url":"https://avatars.githubusercontent.com/u/506129?v=3","gravatar_id":"","url":"https://api.github.com/users/hkdobrev","html_url":"https://github.com/hkdobrev","followers_url":"https://api.github.com/users/hkdobrev/followers","following_url":"https://api.github.com/users/hkdobrev/following{/other_user}","gists_url":"https://api.github.com/users/hkdobrev/gists{/gist_id}","starred_url":"https://api.github.com/users/hkdobrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkdobrev/subscriptions","organizations_url":"https://api.github.com/users/hkdobrev/orgs","repos_url":"https://api.github.com/users/hkdobrev/repos","events_url":"https://api.github.com/users/hkdobrev/events{/privacy}","received_events_url":"https://api.github.com/users/hkdobrev/received_events","type":"User","site_admin":false},"body":"Fixes #2.\r\n\r\nNote this produces links which sometimes can lead to 404 when there is no parent commit.","created_at":"2016-02-18T21:11:06Z","updated_at":"2016-02-20T04:50:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74a6b55b776413557a9f40bca55e298aaba2a4c2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/refined-github/pulls/24/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/refined-github/pulls/24/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/refined-github/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/refined-github/issues/24/comments","statuses_url":"https://api.github.com/repos/sindresorhus/refined-github/statuses/d0c9ea33660860226732a010db9d86c014488d55","head":{"label":"hkdobrev:blame-parent","ref":"blame-parent","sha":"d0c9ea33660860226732a010db9d86c014488d55","user":{"login":"hkdobrev","id":506129,"avatar_url":"https://avatars.githubusercontent.com/u/506129?v=3","gravatar_id":"","url":"https://api.github.com/users/hkdobrev","html_url":"https://github.com/hkdobrev","followers_url":"https://api.github.com/users/hkdobrev/followers","following_url":"https://api.github.com/users/hkdobrev/following{/other_user}","gists_url":"https://api.github.com/users/hkdobrev/gists{/gist_id}","starred_url":"https://api.github.com/users/hkdobrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkdobrev/subscriptions","organizations_url":"https://api.github.com/users/hkdobrev/orgs","repos_url":"https://api.github.com/users/hkdobrev/repos","events_url":"https://api.github.com/users/hkdobrev/events{/privacy}","received_events_url":"https://api.github.com/users/hkdobrev/received_events","type":"User","site_admin":false},"repo":{"id":51877331,"name":"refined-github","full_name":"hkdobrev/refined-github","owner":{"login":"hkdobrev","id":506129,"avatar_url":"https://avatars.githubusercontent.com/u/506129?v=3","gravatar_id":"","url":"https://api.github.com/users/hkdobrev","html_url":"https://github.com/hkdobrev","followers_url":"https://api.github.com/users/hkdobrev/followers","following_url":"https://api.github.com/users/hkdobrev/following{/other_user}","gists_url":"https://api.github.com/users/hkdobrev/gists{/gist_id}","starred_url":"https://api.github.com/users/hkdobrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkdobrev/subscriptions","organizations_url":"https://api.github.com/users/hkdobrev/orgs","repos_url":"https://api.github.com/users/hkdobrev/repos","events_url":"https://api.github.com/users/hkdobrev/events{/privacy}","received_events_url":"https://api.github.com/users/hkdobrev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hkdobrev/refined-github","description":"Chrome extension that simplifies the GitHub interface and adds useful features","fork":true,"url":"https://api.github.com/repos/hkdobrev/refined-github","forks_url":"https://api.github.com/repos/hkdobrev/refined-github/forks","keys_url":"https://api.github.com/repos/hkdobrev/refined-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hkdobrev/refined-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hkdobrev/refined-github/teams","hooks_url":"https://api.github.com/repos/hkdobrev/refined-github/hooks","issue_events_url":"https://api.github.com/repos/hkdobrev/refined-github/issues/events{/number}","events_url":"https://api.github.com/repos/hkdobrev/refined-github/events","assignees_url":"https://api.github.com/repos/hkdobrev/refined-github/assignees{/user}","branches_url":"https://api.github.com/repos/hkdobrev/refined-github/branches{/branch}","tags_url":"https://api.github.com/repos/hkdobrev/refined-github/tags","blobs_url":"https://api.github.com/repos/hkdobrev/refined-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hkdobrev/refined-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hkdobrev/refined-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/hkdobrev/refined-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hkdobrev/refined-github/statuses/{sha}","languages_url":"https://api.github.com/repos/hkdobrev/refined-github/languages","stargazers_url":"https://api.github.com/repos/hkdobrev/refined-github/stargazers","contributors_url":"https://api.github.com/repos/hkdobrev/refined-github/contributors","subscribers_url":"https://api.github.com/repos/hkdobrev/refined-github/subscribers","subscription_url":"https://api.github.com/repos/hkdobrev/refined-github/subscription","commits_url":"https://api.github.com/repos/hkdobrev/refined-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/hkdobrev/refined-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/hkdobrev/refined-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/hkdobrev/refined-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/hkdobrev/refined-github/contents/{+path}","compare_url":"https://api.github.com/repos/hkdobrev/refined-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hkdobrev/refined-github/merges","archive_url":"https://api.github.com/repos/hkdobrev/refined-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hkdobrev/refined-github/downloads","issues_url":"https://api.github.com/repos/hkdobrev/refined-github/issues{/number}","pulls_url":"https://api.github.com/repos/hkdobrev/refined-github/pulls{/number}","milestones_url":"https://api.github.com/repos/hkdobrev/refined-github/milestones{/number}","notifications_url":"https://api.github.com/repos/hkdobrev/refined-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hkdobrev/refined-github/labels{/name}","releases_url":"https://api.github.com/repos/hkdobrev/refined-github/releases{/id}","deployments_url":"https://api.github.com/repos/hkdobrev/refined-github/deployments","created_at":"2016-02-16T23:09:39Z","updated_at":"2016-02-16T23:09:41Z","pushed_at":"2016-02-18T22:28:48Z","git_url":"git://github.com/hkdobrev/refined-github.git","ssh_url":"git@github.com:hkdobrev/refined-github.git","clone_url":"https://github.com/hkdobrev/refined-github.git","svn_url":"https://github.com/hkdobrev/refined-github","homepage":"","size":695,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sindresorhus:master","ref":"master","sha":"1fd4be475a0832b1f638aab378dc0cc771839ba9","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":51769689,"name":"refined-github","full_name":"sindresorhus/refined-github","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/refined-github","description":"Chrome extension that simplifies the GitHub interface and adds useful features","fork":false,"url":"https://api.github.com/repos/sindresorhus/refined-github","forks_url":"https://api.github.com/repos/sindresorhus/refined-github/forks","keys_url":"https://api.github.com/repos/sindresorhus/refined-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/refined-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/refined-github/teams","hooks_url":"https://api.github.com/repos/sindresorhus/refined-github/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/refined-github/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/refined-github/events","assignees_url":"https://api.github.com/repos/sindresorhus/refined-github/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/refined-github/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/refined-github/tags","blobs_url":"https://api.github.com/repos/sindresorhus/refined-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/refined-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/refined-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/refined-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/refined-github/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/refined-github/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/refined-github/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/refined-github/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/refined-github/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/refined-github/subscription","commits_url":"https://api.github.com/repos/sindresorhus/refined-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/refined-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/refined-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/refined-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/refined-github/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/refined-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/refined-github/merges","archive_url":"https://api.github.com/repos/sindresorhus/refined-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/refined-github/downloads","issues_url":"https://api.github.com/repos/sindresorhus/refined-github/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/refined-github/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/refined-github/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/refined-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/refined-github/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/refined-github/releases{/id}","deployments_url":"https://api.github.com/repos/sindresorhus/refined-github/deployments","created_at":"2016-02-15T16:45:02Z","updated_at":"2016-02-20T01:47:21Z","pushed_at":"2016-02-18T22:28:49Z","git_url":"git://github.com/sindresorhus/refined-github.git","ssh_url":"git@github.com:sindresorhus/refined-github.git","clone_url":"https://github.com/sindresorhus/refined-github.git","svn_url":"https://github.com/sindresorhus/refined-github","homepage":"","size":736,"stargazers_count":233,"watchers_count":233,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":6,"forks":14,"open_issues":6,"watchers":233,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/refined-github/pulls/24"},"html":{"href":"https://github.com/sindresorhus/refined-github/pull/24"},"issue":{"href":"https://api.github.com/repos/sindresorhus/refined-github/issues/24"},"comments":{"href":"https://api.github.com/repos/sindresorhus/refined-github/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/refined-github/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/refined-github/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/refined-github/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/refined-github/statuses/d0c9ea33660860226732a010db9d86c014488d55"}}}}