{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/stetho/pulls/comments/31985811","id":31985811,"diff_hunk":"@@ -0,0 +1,223 @@\n+# Stetho's Javascript Console\n+\n+This [Stetho](https://facebook.github.io/stetho) plugin adds a javascript console by embedding Mozilla's [Rhino](https://github.com/mozilla/rhino).\n+\n+## Set-up\n+\n+### Download\n+Download [the latest JARs](https://github.com/facebook/stetho/releases/latest) or grab via Gradle:\n+```groovy\n+compile 'com.facebook.stetho:stetho-repl-js:1.1.1'\n+```\n+or Maven:\n+```xml\n+<dependency>\n+  <groupId>com.facebook.stetho</groupId>\n+  <artifactId>stetho-repl-js</artifactId>\n+  <version>1.1.1</version>\n+</dependency>\n+```\n+\n+Make sure that you depend on the main `stetho` dependency too.\n+\n+### Putting it together\n+The javascript integration is similar to standard Stetho integration.\n+The main difference is with the WebKitInspector used.\n+There is a simple initialization step which occurs in your `Application` class:\n+\n+```java\n+public class MyApplication extends Application {\n+  public void onCreate() {\n+    super.onCreate();\n+    JavaScriptRuntimeBuilder jsRuntimeBuilder = new JavaScriptRuntimeBuilder(this);","path":"stetho-repl-js/README.md","position":32,"original_position":32,"commit_id":"ea243037cb904ba9e1f745c3a81b09b16d470703","original_commit_id":"ea243037cb904ba9e1f745c3a81b09b16d470703","user":{"login":"potyl","id":56197,"avatar_url":"https://avatars.githubusercontent.com/u/56197?v=3","gravatar_id":"","url":"https://api.github.com/users/potyl","html_url":"https://github.com/potyl","followers_url":"https://api.github.com/users/potyl/followers","following_url":"https://api.github.com/users/potyl/following{/other_user}","gists_url":"https://api.github.com/users/potyl/gists{/gist_id}","starred_url":"https://api.github.com/users/potyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potyl/subscriptions","organizations_url":"https://api.github.com/users/potyl/orgs","repos_url":"https://api.github.com/users/potyl/repos","events_url":"https://api.github.com/users/potyl/events{/privacy}","received_events_url":"https://api.github.com/users/potyl/received_events","type":"User","site_admin":false},"body":"From what I've read there's not that much that we can do in code blocks besides selecting the language. I'll try to see if I can use a table with the original block on the left and the modified block on the right.\r\n\r\nIf it would work i could mimic the output of sdiff and it will help to understand what was added.","created_at":"2015-06-09T06:38:04Z","updated_at":"2015-06-09T06:38:04Z","html_url":"https://github.com/facebook/stetho/pull/188#discussion_r31985811","pull_request_url":"https://api.github.com/repos/facebook/stetho/pulls/188","_links":{"self":{"href":"https://api.github.com/repos/facebook/stetho/pulls/comments/31985811"},"html":{"href":"https://github.com/facebook/stetho/pull/188#discussion_r31985811"},"pull_request":{"href":"https://api.github.com/repos/facebook/stetho/pulls/188"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/stetho/pulls/188","id":35089394,"html_url":"https://github.com/facebook/stetho/pull/188","diff_url":"https://github.com/facebook/stetho/pull/188.diff","patch_url":"https://github.com/facebook/stetho/pull/188.patch","issue_url":"https://api.github.com/repos/facebook/stetho/issues/188","number":188,"state":"open","locked":false,"title":"Stetho/repl","user":{"login":"potyl","id":56197,"avatar_url":"https://avatars.githubusercontent.com/u/56197?v=3","gravatar_id":"","url":"https://api.github.com/users/potyl","html_url":"https://github.com/potyl","followers_url":"https://api.github.com/users/potyl/followers","following_url":"https://api.github.com/users/potyl/following{/other_user}","gists_url":"https://api.github.com/users/potyl/gists{/gist_id}","starred_url":"https://api.github.com/users/potyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potyl/subscriptions","organizations_url":"https://api.github.com/users/potyl/orgs","repos_url":"https://api.github.com/users/potyl/repos","events_url":"https://api.github.com/users/potyl/events{/privacy}","received_events_url":"https://api.github.com/users/potyl/received_events","type":"User","site_admin":false},"body":"This is an implementation of issue facebook/stetho#81 using Mozilla's Rhino JavaScript library.","created_at":"2015-05-10T21:48:26Z","updated_at":"2015-06-09T06:38:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5665b6a53e2691ece93e72a4cf9e17c6c60f53f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/stetho/pulls/188/commits","review_comments_url":"https://api.github.com/repos/facebook/stetho/pulls/188/comments","review_comment_url":"https://api.github.com/repos/facebook/stetho/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/stetho/issues/188/comments","statuses_url":"https://api.github.com/repos/facebook/stetho/statuses/ea243037cb904ba9e1f745c3a81b09b16d470703","head":{"label":"potyl:stetho/repl","ref":"stetho/repl","sha":"ea243037cb904ba9e1f745c3a81b09b16d470703","user":{"login":"potyl","id":56197,"avatar_url":"https://avatars.githubusercontent.com/u/56197?v=3","gravatar_id":"","url":"https://api.github.com/users/potyl","html_url":"https://github.com/potyl","followers_url":"https://api.github.com/users/potyl/followers","following_url":"https://api.github.com/users/potyl/following{/other_user}","gists_url":"https://api.github.com/users/potyl/gists{/gist_id}","starred_url":"https://api.github.com/users/potyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potyl/subscriptions","organizations_url":"https://api.github.com/users/potyl/orgs","repos_url":"https://api.github.com/users/potyl/repos","events_url":"https://api.github.com/users/potyl/events{/privacy}","received_events_url":"https://api.github.com/users/potyl/received_events","type":"User","site_admin":false},"repo":{"id":34511393,"name":"stetho","full_name":"potyl/stetho","owner":{"login":"potyl","id":56197,"avatar_url":"https://avatars.githubusercontent.com/u/56197?v=3","gravatar_id":"","url":"https://api.github.com/users/potyl","html_url":"https://github.com/potyl","followers_url":"https://api.github.com/users/potyl/followers","following_url":"https://api.github.com/users/potyl/following{/other_user}","gists_url":"https://api.github.com/users/potyl/gists{/gist_id}","starred_url":"https://api.github.com/users/potyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potyl/subscriptions","organizations_url":"https://api.github.com/users/potyl/orgs","repos_url":"https://api.github.com/users/potyl/repos","events_url":"https://api.github.com/users/potyl/events{/privacy}","received_events_url":"https://api.github.com/users/potyl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/potyl/stetho","description":"Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.","fork":true,"url":"https://api.github.com/repos/potyl/stetho","forks_url":"https://api.github.com/repos/potyl/stetho/forks","keys_url":"https://api.github.com/repos/potyl/stetho/keys{/key_id}","collaborators_url":"https://api.github.com/repos/potyl/stetho/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/potyl/stetho/teams","hooks_url":"https://api.github.com/repos/potyl/stetho/hooks","issue_events_url":"https://api.github.com/repos/potyl/stetho/issues/events{/number}","events_url":"https://api.github.com/repos/potyl/stetho/events","assignees_url":"https://api.github.com/repos/potyl/stetho/assignees{/user}","branches_url":"https://api.github.com/repos/potyl/stetho/branches{/branch}","tags_url":"https://api.github.com/repos/potyl/stetho/tags","blobs_url":"https://api.github.com/repos/potyl/stetho/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/potyl/stetho/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/potyl/stetho/git/refs{/sha}","trees_url":"https://api.github.com/repos/potyl/stetho/git/trees{/sha}","statuses_url":"https://api.github.com/repos/potyl/stetho/statuses/{sha}","languages_url":"https://api.github.com/repos/potyl/stetho/languages","stargazers_url":"https://api.github.com/repos/potyl/stetho/stargazers","contributors_url":"https://api.github.com/repos/potyl/stetho/contributors","subscribers_url":"https://api.github.com/repos/potyl/stetho/subscribers","subscription_url":"https://api.github.com/repos/potyl/stetho/subscription","commits_url":"https://api.github.com/repos/potyl/stetho/commits{/sha}","git_commits_url":"https://api.github.com/repos/potyl/stetho/git/commits{/sha}","comments_url":"https://api.github.com/repos/potyl/stetho/comments{/number}","issue_comment_url":"https://api.github.com/repos/potyl/stetho/issues/comments{/number}","contents_url":"https://api.github.com/repos/potyl/stetho/contents/{+path}","compare_url":"https://api.github.com/repos/potyl/stetho/compare/{base}...{head}","merges_url":"https://api.github.com/repos/potyl/stetho/merges","archive_url":"https://api.github.com/repos/potyl/stetho/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/potyl/stetho/downloads","issues_url":"https://api.github.com/repos/potyl/stetho/issues{/number}","pulls_url":"https://api.github.com/repos/potyl/stetho/pulls{/number}","milestones_url":"https://api.github.com/repos/potyl/stetho/milestones{/number}","notifications_url":"https://api.github.com/repos/potyl/stetho/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/potyl/stetho/labels{/name}","releases_url":"https://api.github.com/repos/potyl/stetho/releases{/id}","created_at":"2015-04-24T10:00:17Z","updated_at":"2015-05-12T09:39:45Z","pushed_at":"2015-05-29T19:33:07Z","git_url":"git://github.com/potyl/stetho.git","ssh_url":"git@github.com:potyl/stetho.git","clone_url":"https://github.com/potyl/stetho.git","svn_url":"https://github.com/potyl/stetho","homepage":"http://facebook.github.io/stetho/","size":1528,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"d39e459ca8e8b6aedfb07df5bb3d9aa5b361f852","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":29703871,"name":"stetho","full_name":"facebook/stetho","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/stetho","description":"Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.","fork":false,"url":"https://api.github.com/repos/facebook/stetho","forks_url":"https://api.github.com/repos/facebook/stetho/forks","keys_url":"https://api.github.com/repos/facebook/stetho/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/stetho/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/stetho/teams","hooks_url":"https://api.github.com/repos/facebook/stetho/hooks","issue_events_url":"https://api.github.com/repos/facebook/stetho/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/stetho/events","assignees_url":"https://api.github.com/repos/facebook/stetho/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/stetho/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/stetho/tags","blobs_url":"https://api.github.com/repos/facebook/stetho/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/stetho/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/stetho/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/stetho/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/stetho/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/stetho/languages","stargazers_url":"https://api.github.com/repos/facebook/stetho/stargazers","contributors_url":"https://api.github.com/repos/facebook/stetho/contributors","subscribers_url":"https://api.github.com/repos/facebook/stetho/subscribers","subscription_url":"https://api.github.com/repos/facebook/stetho/subscription","commits_url":"https://api.github.com/repos/facebook/stetho/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/stetho/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/stetho/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/stetho/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/stetho/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/stetho/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/stetho/merges","archive_url":"https://api.github.com/repos/facebook/stetho/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/stetho/downloads","issues_url":"https://api.github.com/repos/facebook/stetho/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/stetho/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/stetho/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/stetho/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/stetho/labels{/name}","releases_url":"https://api.github.com/repos/facebook/stetho/releases{/id}","created_at":"2015-01-22T22:34:10Z","updated_at":"2015-06-09T05:35:19Z","pushed_at":"2015-05-29T19:33:08Z","git_url":"git://github.com/facebook/stetho.git","ssh_url":"git@github.com:facebook/stetho.git","clone_url":"https://github.com/facebook/stetho.git","svn_url":"https://github.com/facebook/stetho","homepage":"http://facebook.github.io/stetho/","size":3863,"stargazers_count":2738,"watchers_count":2738,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":204,"mirror_url":null,"open_issues_count":23,"forks":204,"open_issues":23,"watchers":2738,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/stetho/pulls/188"},"html":{"href":"https://github.com/facebook/stetho/pull/188"},"issue":{"href":"https://api.github.com/repos/facebook/stetho/issues/188"},"comments":{"href":"https://api.github.com/repos/facebook/stetho/issues/188/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/stetho/pulls/188/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/stetho/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/stetho/pulls/188/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/stetho/statuses/ea243037cb904ba9e1f745c3a81b09b16d470703"}}}}