{"action":"created","issue":{"url":"https://api.github.com/repos/devtools-html/har-export-trigger/issues/1","repository_url":"https://api.github.com/repos/devtools-html/har-export-trigger","labels_url":"https://api.github.com/repos/devtools-html/har-export-trigger/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/devtools-html/har-export-trigger/issues/1/comments","events_url":"https://api.github.com/repos/devtools-html/har-export-trigger/issues/1/events","html_url":"https://github.com/devtools-html/har-export-trigger/issues/1","id":295070302,"number":1,"title":"How to include harapi.js into an external web page?","user":{"login":"xmhubj","id":15373664,"avatar_url":"https://avatars3.githubusercontent.com/u/15373664?v=4","gravatar_id":"","url":"https://api.github.com/users/xmhubj","html_url":"https://github.com/xmhubj","followers_url":"https://api.github.com/users/xmhubj/followers","following_url":"https://api.github.com/users/xmhubj/following{/other_user}","gists_url":"https://api.github.com/users/xmhubj/gists{/gist_id}","starred_url":"https://api.github.com/users/xmhubj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmhubj/subscriptions","organizations_url":"https://api.github.com/users/xmhubj/orgs","repos_url":"https://api.github.com/users/xmhubj/repos","events_url":"https://api.github.com/users/xmhubj/events{/privacy}","received_events_url":"https://api.github.com/users/xmhubj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"janodvarko","id":37785,"avatar_url":"https://avatars1.githubusercontent.com/u/37785?v=4","gravatar_id":"","url":"https://api.github.com/users/janodvarko","html_url":"https://github.com/janodvarko","followers_url":"https://api.github.com/users/janodvarko/followers","following_url":"https://api.github.com/users/janodvarko/following{/other_user}","gists_url":"https://api.github.com/users/janodvarko/gists{/gist_id}","starred_url":"https://api.github.com/users/janodvarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janodvarko/subscriptions","organizations_url":"https://api.github.com/users/janodvarko/orgs","repos_url":"https://api.github.com/users/janodvarko/repos","events_url":"https://api.github.com/users/janodvarko/events{/privacy}","received_events_url":"https://api.github.com/users/janodvarko/received_events","type":"User","site_admin":false},"assignees":[{"login":"janodvarko","id":37785,"avatar_url":"https://avatars1.githubusercontent.com/u/37785?v=4","gravatar_id":"","url":"https://api.github.com/users/janodvarko","html_url":"https://github.com/janodvarko","followers_url":"https://api.github.com/users/janodvarko/followers","following_url":"https://api.github.com/users/janodvarko/following{/other_user}","gists_url":"https://api.github.com/users/janodvarko/gists{/gist_id}","starred_url":"https://api.github.com/users/janodvarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janodvarko/subscriptions","organizations_url":"https://api.github.com/users/janodvarko/orgs","repos_url":"https://api.github.com/users/janodvarko/repos","events_url":"https://api.github.com/users/janodvarko/events{/privacy}","received_events_url":"https://api.github.com/users/janodvarko/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-02-07T09:49:24Z","updated_at":"2018-02-08T13:06:20Z","closed_at":null,"author_association":"NONE","body":"I saw the **How To Use** guidance which says need to include `harapi.js` in to the web page, but how can I include this javascript into an external website, like https://www.google.com.\r\n\r\nCan `harapi.js` be added into the `content_scripts` of manifest.json? \r\n\r\n> Quote from https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/content_scripts\r\n```\r\nInstructs the browser to load content scripts into web pages whose URL matches a given pattern.\r\n```"},"comment":{"url":"https://api.github.com/repos/devtools-html/har-export-trigger/issues/comments/364105955","html_url":"https://github.com/devtools-html/har-export-trigger/issues/1#issuecomment-364105955","issue_url":"https://api.github.com/repos/devtools-html/har-export-trigger/issues/1","id":364105955,"user":{"login":"janodvarko","id":37785,"avatar_url":"https://avatars1.githubusercontent.com/u/37785?v=4","gravatar_id":"","url":"https://api.github.com/users/janodvarko","html_url":"https://github.com/janodvarko","followers_url":"https://api.github.com/users/janodvarko/followers","following_url":"https://api.github.com/users/janodvarko/following{/other_user}","gists_url":"https://api.github.com/users/janodvarko/gists{/gist_id}","starred_url":"https://api.github.com/users/janodvarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janodvarko/subscriptions","organizations_url":"https://api.github.com/users/janodvarko/orgs","repos_url":"https://api.github.com/users/janodvarko/repos","events_url":"https://api.github.com/users/janodvarko/events{/privacy}","received_events_url":"https://api.github.com/users/janodvarko/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T13:06:20Z","updated_at":"2018-02-08T13:06:20Z","author_association":"CONTRIBUTOR","body":"The `harapi.js` file is now injected into every page automatically.\r\n\r\n@xmhubj Can you please try this branch and let me know if it works for you?\r\nhttps://github.com/devtools-html/har-export-trigger/tree/harapi\r\n\r\nAlso, note that the Network panel needs to be selected at least once to make the HAR API work.\r\nThis limitation will be fixed soon in: \r\nhttps://bugzilla.mozilla.org/show_bug.cgi?id=1436665\r\n\r\nHonza\r\n"}}
{"actor":{"display_login":"janodvarko"}}