{"action":"created","comment":{"url":"https://api.github.com/repos/substack/insert-css/pulls/comments/31302065","id":31302065,"diff_hunk":"@@ -32,6 +32,13 @@ optionally prepend the css to the head with the `prepend` option:\n insertCss(css, { prepend: true });\n ```\n \n+inject the `<style>` tag into any element:","path":"readme.markdown","position":4,"original_position":4,"commit_id":"18a1827bebf7c6589dafa633de709c7ed24ce5e6","original_commit_id":"9221c599ed190e5c070b59d283269a7bb5747787","user":{"login":"yoshuawuyts","id":2467194,"avatar_url":"https://avatars.githubusercontent.com/u/2467194?v=3","gravatar_id":"","url":"https://api.github.com/users/yoshuawuyts","html_url":"https://github.com/yoshuawuyts","followers_url":"https://api.github.com/users/yoshuawuyts/followers","following_url":"https://api.github.com/users/yoshuawuyts/following{/other_user}","gists_url":"https://api.github.com/users/yoshuawuyts/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshuawuyts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshuawuyts/subscriptions","organizations_url":"https://api.github.com/users/yoshuawuyts/orgs","repos_url":"https://api.github.com/users/yoshuawuyts/repos","events_url":"https://api.github.com/users/yoshuawuyts/events{/privacy}","received_events_url":"https://api.github.com/users/yoshuawuyts/received_events","type":"User","site_admin":false},"body":"Sounds neat, you could possibly leverage https://github.com/npm-dom/insert to execute this behavior. It's probably slightly out of scope for this patch though.","created_at":"2015-05-29T06:36:15Z","updated_at":"2015-05-29T06:36:15Z","html_url":"https://github.com/substack/insert-css/pull/14#discussion_r31302065","pull_request_url":"https://api.github.com/repos/substack/insert-css/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/substack/insert-css/pulls/comments/31302065"},"html":{"href":"https://github.com/substack/insert-css/pull/14#discussion_r31302065"},"pull_request":{"href":"https://api.github.com/repos/substack/insert-css/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/substack/insert-css/pulls/14","id":36291087,"html_url":"https://github.com/substack/insert-css/pull/14","diff_url":"https://github.com/substack/insert-css/pull/14.diff","patch_url":"https://github.com/substack/insert-css/pull/14.patch","issue_url":"https://api.github.com/repos/substack/insert-css/issues/14","number":14,"state":"open","locked":false,"title":"Option to select where styles are inserted","user":{"login":"cbas","id":78718,"avatar_url":"https://avatars.githubusercontent.com/u/78718?v=3","gravatar_id":"","url":"https://api.github.com/users/cbas","html_url":"https://github.com/cbas","followers_url":"https://api.github.com/users/cbas/followers","following_url":"https://api.github.com/users/cbas/following{/other_user}","gists_url":"https://api.github.com/users/cbas/gists{/gist_id}","starred_url":"https://api.github.com/users/cbas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbas/subscriptions","organizations_url":"https://api.github.com/users/cbas/orgs","repos_url":"https://api.github.com/users/cbas/repos","events_url":"https://api.github.com/users/cbas/events{/privacy}","received_events_url":"https://api.github.com/users/cbas/received_events","type":"User","site_admin":false},"body":"Adding this to allow use with web components where you want to insert scoped CSS into the shadow root.","created_at":"2015-05-27T10:51:32Z","updated_at":"2015-05-29T06:36:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a3415253ace234072800be65beb5f49edd029d61","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/substack/insert-css/pulls/14/commits","review_comments_url":"https://api.github.com/repos/substack/insert-css/pulls/14/comments","review_comment_url":"https://api.github.com/repos/substack/insert-css/pulls/comments{/number}","comments_url":"https://api.github.com/repos/substack/insert-css/issues/14/comments","statuses_url":"https://api.github.com/repos/substack/insert-css/statuses/18a1827bebf7c6589dafa633de709c7ed24ce5e6","head":{"label":"cbas:parent-container","ref":"parent-container","sha":"18a1827bebf7c6589dafa633de709c7ed24ce5e6","user":{"login":"cbas","id":78718,"avatar_url":"https://avatars.githubusercontent.com/u/78718?v=3","gravatar_id":"","url":"https://api.github.com/users/cbas","html_url":"https://github.com/cbas","followers_url":"https://api.github.com/users/cbas/followers","following_url":"https://api.github.com/users/cbas/following{/other_user}","gists_url":"https://api.github.com/users/cbas/gists{/gist_id}","starred_url":"https://api.github.com/users/cbas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbas/subscriptions","organizations_url":"https://api.github.com/users/cbas/orgs","repos_url":"https://api.github.com/users/cbas/repos","events_url":"https://api.github.com/users/cbas/events{/privacy}","received_events_url":"https://api.github.com/users/cbas/received_events","type":"User","site_admin":false},"repo":{"id":36352926,"name":"insert-css","full_name":"cbas/insert-css","owner":{"login":"cbas","id":78718,"avatar_url":"https://avatars.githubusercontent.com/u/78718?v=3","gravatar_id":"","url":"https://api.github.com/users/cbas","html_url":"https://github.com/cbas","followers_url":"https://api.github.com/users/cbas/followers","following_url":"https://api.github.com/users/cbas/following{/other_user}","gists_url":"https://api.github.com/users/cbas/gists{/gist_id}","starred_url":"https://api.github.com/users/cbas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbas/subscriptions","organizations_url":"https://api.github.com/users/cbas/orgs","repos_url":"https://api.github.com/users/cbas/repos","events_url":"https://api.github.com/users/cbas/events{/privacy}","received_events_url":"https://api.github.com/users/cbas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbas/insert-css","description":"insert a string of css into the <head>","fork":true,"url":"https://api.github.com/repos/cbas/insert-css","forks_url":"https://api.github.com/repos/cbas/insert-css/forks","keys_url":"https://api.github.com/repos/cbas/insert-css/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbas/insert-css/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbas/insert-css/teams","hooks_url":"https://api.github.com/repos/cbas/insert-css/hooks","issue_events_url":"https://api.github.com/repos/cbas/insert-css/issues/events{/number}","events_url":"https://api.github.com/repos/cbas/insert-css/events","assignees_url":"https://api.github.com/repos/cbas/insert-css/assignees{/user}","branches_url":"https://api.github.com/repos/cbas/insert-css/branches{/branch}","tags_url":"https://api.github.com/repos/cbas/insert-css/tags","blobs_url":"https://api.github.com/repos/cbas/insert-css/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbas/insert-css/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbas/insert-css/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbas/insert-css/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbas/insert-css/statuses/{sha}","languages_url":"https://api.github.com/repos/cbas/insert-css/languages","stargazers_url":"https://api.github.com/repos/cbas/insert-css/stargazers","contributors_url":"https://api.github.com/repos/cbas/insert-css/contributors","subscribers_url":"https://api.github.com/repos/cbas/insert-css/subscribers","subscription_url":"https://api.github.com/repos/cbas/insert-css/subscription","commits_url":"https://api.github.com/repos/cbas/insert-css/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbas/insert-css/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbas/insert-css/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbas/insert-css/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbas/insert-css/contents/{+path}","compare_url":"https://api.github.com/repos/cbas/insert-css/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbas/insert-css/merges","archive_url":"https://api.github.com/repos/cbas/insert-css/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbas/insert-css/downloads","issues_url":"https://api.github.com/repos/cbas/insert-css/issues{/number}","pulls_url":"https://api.github.com/repos/cbas/insert-css/pulls{/number}","milestones_url":"https://api.github.com/repos/cbas/insert-css/milestones{/number}","notifications_url":"https://api.github.com/repos/cbas/insert-css/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbas/insert-css/labels{/name}","releases_url":"https://api.github.com/repos/cbas/insert-css/releases{/id}","created_at":"2015-05-27T08:12:25Z","updated_at":"2015-05-27T08:12:25Z","pushed_at":"2015-05-29T02:27:06Z","git_url":"git://github.com/cbas/insert-css.git","ssh_url":"git@github.com:cbas/insert-css.git","clone_url":"https://github.com/cbas/insert-css.git","svn_url":"https://github.com/cbas/insert-css","homepage":null,"size":120,"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":"substack:master","ref":"master","sha":"acc7f4688a6e4b1ce2d5ebdbedb90e93385f991c","user":{"login":"substack","id":12631,"avatar_url":"https://avatars.githubusercontent.com/u/12631?v=3","gravatar_id":"","url":"https://api.github.com/users/substack","html_url":"https://github.com/substack","followers_url":"https://api.github.com/users/substack/followers","following_url":"https://api.github.com/users/substack/following{/other_user}","gists_url":"https://api.github.com/users/substack/gists{/gist_id}","starred_url":"https://api.github.com/users/substack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/substack/subscriptions","organizations_url":"https://api.github.com/users/substack/orgs","repos_url":"https://api.github.com/users/substack/repos","events_url":"https://api.github.com/users/substack/events{/privacy}","received_events_url":"https://api.github.com/users/substack/received_events","type":"User","site_admin":false},"repo":{"id":8784628,"name":"insert-css","full_name":"substack/insert-css","owner":{"login":"substack","id":12631,"avatar_url":"https://avatars.githubusercontent.com/u/12631?v=3","gravatar_id":"","url":"https://api.github.com/users/substack","html_url":"https://github.com/substack","followers_url":"https://api.github.com/users/substack/followers","following_url":"https://api.github.com/users/substack/following{/other_user}","gists_url":"https://api.github.com/users/substack/gists{/gist_id}","starred_url":"https://api.github.com/users/substack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/substack/subscriptions","organizations_url":"https://api.github.com/users/substack/orgs","repos_url":"https://api.github.com/users/substack/repos","events_url":"https://api.github.com/users/substack/events{/privacy}","received_events_url":"https://api.github.com/users/substack/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/substack/insert-css","description":"insert a string of css into the <head>","fork":false,"url":"https://api.github.com/repos/substack/insert-css","forks_url":"https://api.github.com/repos/substack/insert-css/forks","keys_url":"https://api.github.com/repos/substack/insert-css/keys{/key_id}","collaborators_url":"https://api.github.com/repos/substack/insert-css/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/substack/insert-css/teams","hooks_url":"https://api.github.com/repos/substack/insert-css/hooks","issue_events_url":"https://api.github.com/repos/substack/insert-css/issues/events{/number}","events_url":"https://api.github.com/repos/substack/insert-css/events","assignees_url":"https://api.github.com/repos/substack/insert-css/assignees{/user}","branches_url":"https://api.github.com/repos/substack/insert-css/branches{/branch}","tags_url":"https://api.github.com/repos/substack/insert-css/tags","blobs_url":"https://api.github.com/repos/substack/insert-css/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/substack/insert-css/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/substack/insert-css/git/refs{/sha}","trees_url":"https://api.github.com/repos/substack/insert-css/git/trees{/sha}","statuses_url":"https://api.github.com/repos/substack/insert-css/statuses/{sha}","languages_url":"https://api.github.com/repos/substack/insert-css/languages","stargazers_url":"https://api.github.com/repos/substack/insert-css/stargazers","contributors_url":"https://api.github.com/repos/substack/insert-css/contributors","subscribers_url":"https://api.github.com/repos/substack/insert-css/subscribers","subscription_url":"https://api.github.com/repos/substack/insert-css/subscription","commits_url":"https://api.github.com/repos/substack/insert-css/commits{/sha}","git_commits_url":"https://api.github.com/repos/substack/insert-css/git/commits{/sha}","comments_url":"https://api.github.com/repos/substack/insert-css/comments{/number}","issue_comment_url":"https://api.github.com/repos/substack/insert-css/issues/comments{/number}","contents_url":"https://api.github.com/repos/substack/insert-css/contents/{+path}","compare_url":"https://api.github.com/repos/substack/insert-css/compare/{base}...{head}","merges_url":"https://api.github.com/repos/substack/insert-css/merges","archive_url":"https://api.github.com/repos/substack/insert-css/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/substack/insert-css/downloads","issues_url":"https://api.github.com/repos/substack/insert-css/issues{/number}","pulls_url":"https://api.github.com/repos/substack/insert-css/pulls{/number}","milestones_url":"https://api.github.com/repos/substack/insert-css/milestones{/number}","notifications_url":"https://api.github.com/repos/substack/insert-css/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/substack/insert-css/labels{/name}","releases_url":"https://api.github.com/repos/substack/insert-css/releases{/id}","created_at":"2013-03-14T20:26:12Z","updated_at":"2015-05-28T23:18:21Z","pushed_at":"2015-05-29T02:27:06Z","git_url":"git://github.com/substack/insert-css.git","ssh_url":"git@github.com:substack/insert-css.git","clone_url":"https://github.com/substack/insert-css.git","svn_url":"https://github.com/substack/insert-css","homepage":null,"size":240,"stargazers_count":81,"watchers_count":81,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":8,"forks":17,"open_issues":8,"watchers":81,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/substack/insert-css/pulls/14"},"html":{"href":"https://github.com/substack/insert-css/pull/14"},"issue":{"href":"https://api.github.com/repos/substack/insert-css/issues/14"},"comments":{"href":"https://api.github.com/repos/substack/insert-css/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/substack/insert-css/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/substack/insert-css/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/substack/insert-css/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/substack/insert-css/statuses/18a1827bebf7c6589dafa633de709c7ed24ce5e6"}}}}