{"action":"created","comment":{"url":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls/comments/29317217","id":29317217,"diff_hunk":"@@ -15,6 +15,13 @@ javascript:(function(){\n                     span.style.fontWeight = 'bold';\n                     span.innerHTML = data.players[0].NumberOfVACBans + ' VAC bans ' + data.players[0].DaysSinceLastBan + ' days ago.';\n                     friend.parentNode.parentNode.querySelector('.friendSmallText').appendChild(span);\n+                }else{\n+                    var span = document.createElement('span');\n+                    span.style.display = 'block';\n+                    span.style.color = 'rgb(43, 203, 64)';\n+                    span.style.fontWeight = 'bold';\n+                    span.innerHTML = 'No VAC Bans for this player.';\n+                    friend.parentNode.parentNode.querySelector('.friendSmallText').appendChild(span);","path":"vaccheck.js","position":10,"original_position":10,"commit_id":"d91addd9d561be73b1e6e4ed8c898a68745e1800","original_commit_id":"d91addd9d561be73b1e6e4ed8c898a68745e1800","user":{"login":"MrHayato","id":600962,"avatar_url":"https://avatars.githubusercontent.com/u/600962?v=3","gravatar_id":"","url":"https://api.github.com/users/MrHayato","html_url":"https://github.com/MrHayato","followers_url":"https://api.github.com/users/MrHayato/followers","following_url":"https://api.github.com/users/MrHayato/following{/other_user}","gists_url":"https://api.github.com/users/MrHayato/gists{/gist_id}","starred_url":"https://api.github.com/users/MrHayato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrHayato/subscriptions","organizations_url":"https://api.github.com/users/MrHayato/orgs","repos_url":"https://api.github.com/users/MrHayato/repos","events_url":"https://api.github.com/users/MrHayato/events{/privacy}","received_events_url":"https://api.github.com/users/MrHayato/received_events","type":"User","site_admin":false},"body":"I'd clean this up a tad first. Create the span outside of the if statement, and just set the color and inner text in the conditional. There's some repeated code and I'm kind of a stickler for keeping code clean :smile: Feel free to make the change and I'll gladly merge it in!","created_at":"2015-04-29T08:20:10Z","updated_at":"2015-04-29T08:20:10Z","html_url":"https://github.com/MrHayato/VacBanChecker/pull/1#discussion_r29317217","pull_request_url":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls/comments/29317217"},"html":{"href":"https://github.com/MrHayato/VacBanChecker/pull/1#discussion_r29317217"},"pull_request":{"href":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls/1","id":34341101,"html_url":"https://github.com/MrHayato/VacBanChecker/pull/1","diff_url":"https://github.com/MrHayato/VacBanChecker/pull/1.diff","patch_url":"https://github.com/MrHayato/VacBanChecker/pull/1.patch","issue_url":"https://api.github.com/repos/MrHayato/VacBanChecker/issues/1","number":1,"state":"open","locked":false,"title":"Added \"No VAC Bans for this player\" message.","user":{"login":"AmarKalabic","id":1289907,"avatar_url":"https://avatars.githubusercontent.com/u/1289907?v=3","gravatar_id":"","url":"https://api.github.com/users/AmarKalabic","html_url":"https://github.com/AmarKalabic","followers_url":"https://api.github.com/users/AmarKalabic/followers","following_url":"https://api.github.com/users/AmarKalabic/following{/other_user}","gists_url":"https://api.github.com/users/AmarKalabic/gists{/gist_id}","starred_url":"https://api.github.com/users/AmarKalabic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmarKalabic/subscriptions","organizations_url":"https://api.github.com/users/AmarKalabic/orgs","repos_url":"https://api.github.com/users/AmarKalabic/repos","events_url":"https://api.github.com/users/AmarKalabic/events{/privacy}","received_events_url":"https://api.github.com/users/AmarKalabic/received_events","type":"User","site_admin":false},"body":"It's great way to non-coding and new javascript users to actually see that script is working.","created_at":"2015-04-29T08:15:31Z","updated_at":"2015-04-29T08:20:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d87f93b514e366a2297f074afca7e6b43f49e4c4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls/1/commits","review_comments_url":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls/1/comments","review_comment_url":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MrHayato/VacBanChecker/issues/1/comments","statuses_url":"https://api.github.com/repos/MrHayato/VacBanChecker/statuses/d91addd9d561be73b1e6e4ed8c898a68745e1800","head":{"label":"AmarKalabic:patch-1","ref":"patch-1","sha":"d91addd9d561be73b1e6e4ed8c898a68745e1800","user":{"login":"AmarKalabic","id":1289907,"avatar_url":"https://avatars.githubusercontent.com/u/1289907?v=3","gravatar_id":"","url":"https://api.github.com/users/AmarKalabic","html_url":"https://github.com/AmarKalabic","followers_url":"https://api.github.com/users/AmarKalabic/followers","following_url":"https://api.github.com/users/AmarKalabic/following{/other_user}","gists_url":"https://api.github.com/users/AmarKalabic/gists{/gist_id}","starred_url":"https://api.github.com/users/AmarKalabic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmarKalabic/subscriptions","organizations_url":"https://api.github.com/users/AmarKalabic/orgs","repos_url":"https://api.github.com/users/AmarKalabic/repos","events_url":"https://api.github.com/users/AmarKalabic/events{/privacy}","received_events_url":"https://api.github.com/users/AmarKalabic/received_events","type":"User","site_admin":false},"repo":{"id":34781080,"name":"VacBanChecker","full_name":"AmarKalabic/VacBanChecker","owner":{"login":"AmarKalabic","id":1289907,"avatar_url":"https://avatars.githubusercontent.com/u/1289907?v=3","gravatar_id":"","url":"https://api.github.com/users/AmarKalabic","html_url":"https://github.com/AmarKalabic","followers_url":"https://api.github.com/users/AmarKalabic/followers","following_url":"https://api.github.com/users/AmarKalabic/following{/other_user}","gists_url":"https://api.github.com/users/AmarKalabic/gists{/gist_id}","starred_url":"https://api.github.com/users/AmarKalabic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmarKalabic/subscriptions","organizations_url":"https://api.github.com/users/AmarKalabic/orgs","repos_url":"https://api.github.com/users/AmarKalabic/repos","events_url":"https://api.github.com/users/AmarKalabic/events{/privacy}","received_events_url":"https://api.github.com/users/AmarKalabic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AmarKalabic/VacBanChecker","description":"A bookmarklet to check for steam vac bans","fork":true,"url":"https://api.github.com/repos/AmarKalabic/VacBanChecker","forks_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/forks","keys_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/teams","hooks_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/hooks","issue_events_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/issues/events{/number}","events_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/events","assignees_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/assignees{/user}","branches_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/branches{/branch}","tags_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/tags","blobs_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/git/refs{/sha}","trees_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/statuses/{sha}","languages_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/languages","stargazers_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/stargazers","contributors_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/contributors","subscribers_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/subscribers","subscription_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/subscription","commits_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/commits{/sha}","git_commits_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/git/commits{/sha}","comments_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/comments{/number}","issue_comment_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/issues/comments{/number}","contents_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/contents/{+path}","compare_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/merges","archive_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/downloads","issues_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/issues{/number}","pulls_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/pulls{/number}","milestones_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/milestones{/number}","notifications_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/labels{/name}","releases_url":"https://api.github.com/repos/AmarKalabic/VacBanChecker/releases{/id}","created_at":"2015-04-29T08:13:32Z","updated_at":"2015-04-29T08:13:32Z","pushed_at":"2015-04-29T08:15:19Z","git_url":"git://github.com/AmarKalabic/VacBanChecker.git","ssh_url":"git@github.com:AmarKalabic/VacBanChecker.git","clone_url":"https://github.com/AmarKalabic/VacBanChecker.git","svn_url":"https://github.com/AmarKalabic/VacBanChecker","homepage":null,"size":0,"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":"MrHayato:master","ref":"master","sha":"09608ad74a2846d3697bf20818383ed80a45ebfa","user":{"login":"MrHayato","id":600962,"avatar_url":"https://avatars.githubusercontent.com/u/600962?v=3","gravatar_id":"","url":"https://api.github.com/users/MrHayato","html_url":"https://github.com/MrHayato","followers_url":"https://api.github.com/users/MrHayato/followers","following_url":"https://api.github.com/users/MrHayato/following{/other_user}","gists_url":"https://api.github.com/users/MrHayato/gists{/gist_id}","starred_url":"https://api.github.com/users/MrHayato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrHayato/subscriptions","organizations_url":"https://api.github.com/users/MrHayato/orgs","repos_url":"https://api.github.com/users/MrHayato/repos","events_url":"https://api.github.com/users/MrHayato/events{/privacy}","received_events_url":"https://api.github.com/users/MrHayato/received_events","type":"User","site_admin":false},"repo":{"id":34777967,"name":"VacBanChecker","full_name":"MrHayato/VacBanChecker","owner":{"login":"MrHayato","id":600962,"avatar_url":"https://avatars.githubusercontent.com/u/600962?v=3","gravatar_id":"","url":"https://api.github.com/users/MrHayato","html_url":"https://github.com/MrHayato","followers_url":"https://api.github.com/users/MrHayato/followers","following_url":"https://api.github.com/users/MrHayato/following{/other_user}","gists_url":"https://api.github.com/users/MrHayato/gists{/gist_id}","starred_url":"https://api.github.com/users/MrHayato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrHayato/subscriptions","organizations_url":"https://api.github.com/users/MrHayato/orgs","repos_url":"https://api.github.com/users/MrHayato/repos","events_url":"https://api.github.com/users/MrHayato/events{/privacy}","received_events_url":"https://api.github.com/users/MrHayato/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MrHayato/VacBanChecker","description":"A bookmarklet to check for steam vac bans","fork":false,"url":"https://api.github.com/repos/MrHayato/VacBanChecker","forks_url":"https://api.github.com/repos/MrHayato/VacBanChecker/forks","keys_url":"https://api.github.com/repos/MrHayato/VacBanChecker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MrHayato/VacBanChecker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MrHayato/VacBanChecker/teams","hooks_url":"https://api.github.com/repos/MrHayato/VacBanChecker/hooks","issue_events_url":"https://api.github.com/repos/MrHayato/VacBanChecker/issues/events{/number}","events_url":"https://api.github.com/repos/MrHayato/VacBanChecker/events","assignees_url":"https://api.github.com/repos/MrHayato/VacBanChecker/assignees{/user}","branches_url":"https://api.github.com/repos/MrHayato/VacBanChecker/branches{/branch}","tags_url":"https://api.github.com/repos/MrHayato/VacBanChecker/tags","blobs_url":"https://api.github.com/repos/MrHayato/VacBanChecker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MrHayato/VacBanChecker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MrHayato/VacBanChecker/git/refs{/sha}","trees_url":"https://api.github.com/repos/MrHayato/VacBanChecker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MrHayato/VacBanChecker/statuses/{sha}","languages_url":"https://api.github.com/repos/MrHayato/VacBanChecker/languages","stargazers_url":"https://api.github.com/repos/MrHayato/VacBanChecker/stargazers","contributors_url":"https://api.github.com/repos/MrHayato/VacBanChecker/contributors","subscribers_url":"https://api.github.com/repos/MrHayato/VacBanChecker/subscribers","subscription_url":"https://api.github.com/repos/MrHayato/VacBanChecker/subscription","commits_url":"https://api.github.com/repos/MrHayato/VacBanChecker/commits{/sha}","git_commits_url":"https://api.github.com/repos/MrHayato/VacBanChecker/git/commits{/sha}","comments_url":"https://api.github.com/repos/MrHayato/VacBanChecker/comments{/number}","issue_comment_url":"https://api.github.com/repos/MrHayato/VacBanChecker/issues/comments{/number}","contents_url":"https://api.github.com/repos/MrHayato/VacBanChecker/contents/{+path}","compare_url":"https://api.github.com/repos/MrHayato/VacBanChecker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MrHayato/VacBanChecker/merges","archive_url":"https://api.github.com/repos/MrHayato/VacBanChecker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MrHayato/VacBanChecker/downloads","issues_url":"https://api.github.com/repos/MrHayato/VacBanChecker/issues{/number}","pulls_url":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls{/number}","milestones_url":"https://api.github.com/repos/MrHayato/VacBanChecker/milestones{/number}","notifications_url":"https://api.github.com/repos/MrHayato/VacBanChecker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MrHayato/VacBanChecker/labels{/name}","releases_url":"https://api.github.com/repos/MrHayato/VacBanChecker/releases{/id}","created_at":"2015-04-29T07:10:03Z","updated_at":"2015-04-29T07:35:21Z","pushed_at":"2015-04-29T08:15:31Z","git_url":"git://github.com/MrHayato/VacBanChecker.git","ssh_url":"git@github.com:MrHayato/VacBanChecker.git","clone_url":"https://github.com/MrHayato/VacBanChecker.git","svn_url":"https://github.com/MrHayato/VacBanChecker","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls/1"},"html":{"href":"https://github.com/MrHayato/VacBanChecker/pull/1"},"issue":{"href":"https://api.github.com/repos/MrHayato/VacBanChecker/issues/1"},"comments":{"href":"https://api.github.com/repos/MrHayato/VacBanChecker/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MrHayato/VacBanChecker/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/MrHayato/VacBanChecker/statuses/d91addd9d561be73b1e6e4ed8c898a68745e1800"}}}}