{"action":"closed","number":251,"pull_request":{"url":"https://api.github.com/repos/openstyles/stylus/pulls/251","id":153539004,"html_url":"https://github.com/openstyles/stylus/pull/251","diff_url":"https://github.com/openstyles/stylus/pull/251.diff","patch_url":"https://github.com/openstyles/stylus/pull/251.patch","issue_url":"https://api.github.com/repos/openstyles/stylus/issues/251","number":251,"state":"closed","locked":false,"title":"Show styles from userstyles.org in Stylus popup","user":{"login":"derv82","id":993464,"avatar_url":"https://avatars3.githubusercontent.com/u/993464?v=4","gravatar_id":"","url":"https://api.github.com/users/derv82","html_url":"https://github.com/derv82","followers_url":"https://api.github.com/users/derv82/followers","following_url":"https://api.github.com/users/derv82/following{/other_user}","gists_url":"https://api.github.com/users/derv82/gists{/gist_id}","starred_url":"https://api.github.com/users/derv82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derv82/subscriptions","organizations_url":"https://api.github.com/users/derv82/orgs","repos_url":"https://api.github.com/users/derv82/repos","events_url":"https://api.github.com/users/derv82/events{/privacy}","received_events_url":"https://api.github.com/users/derv82/received_events","type":"User","site_admin":false},"body":"Feature request / enhancement issue: https://github.com/openstyles/stylus/issues/243\r\n\r\nNotes on the first revision of the PR:\r\n\r\n1. I installed `editorconfig` and made my changes using *VisualStudio Code*. Let me know if the formatting is off...\r\n2. `searchResults.js` is encapsulated to only expose `UserStylesAPI` and `SearchResults`\r\n3. Before trying to install the style (`searchResults.js:215`), I fetch the Style object from userstyles.org's API. Sample request: https://userstyles.org/api/v1/styles/70271\r\n   * Should I pull the `style` from somewhere else on the site? E.g. the UserScripts Greasemonkey/Tampermonkey code?\r\n   * Would it be easier to load the actual HTML style page in a hidden iframe, and install it from there?","created_at":"2017-11-20T03:48:41Z","updated_at":"2017-12-09T21:03:18Z","closed_at":"2017-12-09T21:03:18Z","merged_at":"2017-12-09T21:03:18Z","merge_commit_sha":"ce278fb4d0cf81ebff5e0ac9f6fbc09935a5d62a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/openstyles/stylus/pulls/251/commits","review_comments_url":"https://api.github.com/repos/openstyles/stylus/pulls/251/comments","review_comment_url":"https://api.github.com/repos/openstyles/stylus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openstyles/stylus/issues/251/comments","statuses_url":"https://api.github.com/repos/openstyles/stylus/statuses/4ee8e06a6411316080a1282628e11debf87024ab","head":{"label":"derv82:master","ref":"master","sha":"4ee8e06a6411316080a1282628e11debf87024ab","user":{"login":"derv82","id":993464,"avatar_url":"https://avatars3.githubusercontent.com/u/993464?v=4","gravatar_id":"","url":"https://api.github.com/users/derv82","html_url":"https://github.com/derv82","followers_url":"https://api.github.com/users/derv82/followers","following_url":"https://api.github.com/users/derv82/following{/other_user}","gists_url":"https://api.github.com/users/derv82/gists{/gist_id}","starred_url":"https://api.github.com/users/derv82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derv82/subscriptions","organizations_url":"https://api.github.com/users/derv82/orgs","repos_url":"https://api.github.com/users/derv82/repos","events_url":"https://api.github.com/users/derv82/events{/privacy}","received_events_url":"https://api.github.com/users/derv82/received_events","type":"User","site_admin":false},"repo":{"id":111286664,"name":"stylus","full_name":"derv82/stylus","owner":{"login":"derv82","id":993464,"avatar_url":"https://avatars3.githubusercontent.com/u/993464?v=4","gravatar_id":"","url":"https://api.github.com/users/derv82","html_url":"https://github.com/derv82","followers_url":"https://api.github.com/users/derv82/followers","following_url":"https://api.github.com/users/derv82/following{/other_user}","gists_url":"https://api.github.com/users/derv82/gists{/gist_id}","starred_url":"https://api.github.com/users/derv82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derv82/subscriptions","organizations_url":"https://api.github.com/users/derv82/orgs","repos_url":"https://api.github.com/users/derv82/repos","events_url":"https://api.github.com/users/derv82/events{/privacy}","received_events_url":"https://api.github.com/users/derv82/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/derv82/stylus","description":"Stylus - Userstyles Manager","fork":true,"url":"https://api.github.com/repos/derv82/stylus","forks_url":"https://api.github.com/repos/derv82/stylus/forks","keys_url":"https://api.github.com/repos/derv82/stylus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/derv82/stylus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/derv82/stylus/teams","hooks_url":"https://api.github.com/repos/derv82/stylus/hooks","issue_events_url":"https://api.github.com/repos/derv82/stylus/issues/events{/number}","events_url":"https://api.github.com/repos/derv82/stylus/events","assignees_url":"https://api.github.com/repos/derv82/stylus/assignees{/user}","branches_url":"https://api.github.com/repos/derv82/stylus/branches{/branch}","tags_url":"https://api.github.com/repos/derv82/stylus/tags","blobs_url":"https://api.github.com/repos/derv82/stylus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/derv82/stylus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/derv82/stylus/git/refs{/sha}","trees_url":"https://api.github.com/repos/derv82/stylus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/derv82/stylus/statuses/{sha}","languages_url":"https://api.github.com/repos/derv82/stylus/languages","stargazers_url":"https://api.github.com/repos/derv82/stylus/stargazers","contributors_url":"https://api.github.com/repos/derv82/stylus/contributors","subscribers_url":"https://api.github.com/repos/derv82/stylus/subscribers","subscription_url":"https://api.github.com/repos/derv82/stylus/subscription","commits_url":"https://api.github.com/repos/derv82/stylus/commits{/sha}","git_commits_url":"https://api.github.com/repos/derv82/stylus/git/commits{/sha}","comments_url":"https://api.github.com/repos/derv82/stylus/comments{/number}","issue_comment_url":"https://api.github.com/repos/derv82/stylus/issues/comments{/number}","contents_url":"https://api.github.com/repos/derv82/stylus/contents/{+path}","compare_url":"https://api.github.com/repos/derv82/stylus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/derv82/stylus/merges","archive_url":"https://api.github.com/repos/derv82/stylus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/derv82/stylus/downloads","issues_url":"https://api.github.com/repos/derv82/stylus/issues{/number}","pulls_url":"https://api.github.com/repos/derv82/stylus/pulls{/number}","milestones_url":"https://api.github.com/repos/derv82/stylus/milestones{/number}","notifications_url":"https://api.github.com/repos/derv82/stylus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/derv82/stylus/labels{/name}","releases_url":"https://api.github.com/repos/derv82/stylus/releases{/id}","deployments_url":"https://api.github.com/repos/derv82/stylus/deployments","created_at":"2017-11-19T10:54:44Z","updated_at":"2017-11-19T10:54:46Z","pushed_at":"2017-12-09T08:29:19Z","git_url":"git://github.com/derv82/stylus.git","ssh_url":"git@github.com:derv82/stylus.git","clone_url":"https://github.com/derv82/stylus.git","svn_url":"https://github.com/derv82/stylus","homepage":"http://add0n.com/stylus.html","size":6381,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openstyles:master","ref":"master","sha":"9486c7f3df057a5aa121eee6bbdef3cd5e284d63","user":{"login":"openstyles","id":29350089,"avatar_url":"https://avatars2.githubusercontent.com/u/29350089?v=4","gravatar_id":"","url":"https://api.github.com/users/openstyles","html_url":"https://github.com/openstyles","followers_url":"https://api.github.com/users/openstyles/followers","following_url":"https://api.github.com/users/openstyles/following{/other_user}","gists_url":"https://api.github.com/users/openstyles/gists{/gist_id}","starred_url":"https://api.github.com/users/openstyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstyles/subscriptions","organizations_url":"https://api.github.com/users/openstyles/orgs","repos_url":"https://api.github.com/users/openstyles/repos","events_url":"https://api.github.com/users/openstyles/events{/privacy}","received_events_url":"https://api.github.com/users/openstyles/received_events","type":"Organization","site_admin":false},"repo":{"id":78330996,"name":"stylus","full_name":"openstyles/stylus","owner":{"login":"openstyles","id":29350089,"avatar_url":"https://avatars2.githubusercontent.com/u/29350089?v=4","gravatar_id":"","url":"https://api.github.com/users/openstyles","html_url":"https://github.com/openstyles","followers_url":"https://api.github.com/users/openstyles/followers","following_url":"https://api.github.com/users/openstyles/following{/other_user}","gists_url":"https://api.github.com/users/openstyles/gists{/gist_id}","starred_url":"https://api.github.com/users/openstyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstyles/subscriptions","organizations_url":"https://api.github.com/users/openstyles/orgs","repos_url":"https://api.github.com/users/openstyles/repos","events_url":"https://api.github.com/users/openstyles/events{/privacy}","received_events_url":"https://api.github.com/users/openstyles/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstyles/stylus","description":"Stylus - Userstyles Manager","fork":false,"url":"https://api.github.com/repos/openstyles/stylus","forks_url":"https://api.github.com/repos/openstyles/stylus/forks","keys_url":"https://api.github.com/repos/openstyles/stylus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstyles/stylus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstyles/stylus/teams","hooks_url":"https://api.github.com/repos/openstyles/stylus/hooks","issue_events_url":"https://api.github.com/repos/openstyles/stylus/issues/events{/number}","events_url":"https://api.github.com/repos/openstyles/stylus/events","assignees_url":"https://api.github.com/repos/openstyles/stylus/assignees{/user}","branches_url":"https://api.github.com/repos/openstyles/stylus/branches{/branch}","tags_url":"https://api.github.com/repos/openstyles/stylus/tags","blobs_url":"https://api.github.com/repos/openstyles/stylus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstyles/stylus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstyles/stylus/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstyles/stylus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstyles/stylus/statuses/{sha}","languages_url":"https://api.github.com/repos/openstyles/stylus/languages","stargazers_url":"https://api.github.com/repos/openstyles/stylus/stargazers","contributors_url":"https://api.github.com/repos/openstyles/stylus/contributors","subscribers_url":"https://api.github.com/repos/openstyles/stylus/subscribers","subscription_url":"https://api.github.com/repos/openstyles/stylus/subscription","commits_url":"https://api.github.com/repos/openstyles/stylus/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstyles/stylus/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstyles/stylus/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstyles/stylus/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstyles/stylus/contents/{+path}","compare_url":"https://api.github.com/repos/openstyles/stylus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstyles/stylus/merges","archive_url":"https://api.github.com/repos/openstyles/stylus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstyles/stylus/downloads","issues_url":"https://api.github.com/repos/openstyles/stylus/issues{/number}","pulls_url":"https://api.github.com/repos/openstyles/stylus/pulls{/number}","milestones_url":"https://api.github.com/repos/openstyles/stylus/milestones{/number}","notifications_url":"https://api.github.com/repos/openstyles/stylus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstyles/stylus/labels{/name}","releases_url":"https://api.github.com/repos/openstyles/stylus/releases{/id}","deployments_url":"https://api.github.com/repos/openstyles/stylus/deployments","created_at":"2017-01-08T08:35:15Z","updated_at":"2017-12-08T22:53:48Z","pushed_at":"2017-12-09T21:03:18Z","git_url":"git://github.com/openstyles/stylus.git","ssh_url":"git@github.com:openstyles/stylus.git","clone_url":"https://github.com/openstyles/stylus.git","svn_url":"https://github.com/openstyles/stylus","homepage":"http://add0n.com/stylus.html","size":6320,"stargazers_count":367,"watchers_count":367,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"archived":false,"open_issues_count":38,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":36,"open_issues":38,"watchers":367,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openstyles/stylus/pulls/251"},"html":{"href":"https://github.com/openstyles/stylus/pull/251"},"issue":{"href":"https://api.github.com/repos/openstyles/stylus/issues/251"},"comments":{"href":"https://api.github.com/repos/openstyles/stylus/issues/251/comments"},"review_comments":{"href":"https://api.github.com/repos/openstyles/stylus/pulls/251/comments"},"review_comment":{"href":"https://api.github.com/repos/openstyles/stylus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openstyles/stylus/pulls/251/commits"},"statuses":{"href":"https://api.github.com/repos/openstyles/stylus/statuses/4ee8e06a6411316080a1282628e11debf87024ab"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"tophf","id":1310400,"avatar_url":"https://avatars0.githubusercontent.com/u/1310400?v=4","gravatar_id":"","url":"https://api.github.com/users/tophf","html_url":"https://github.com/tophf","followers_url":"https://api.github.com/users/tophf/followers","following_url":"https://api.github.com/users/tophf/following{/other_user}","gists_url":"https://api.github.com/users/tophf/gists{/gist_id}","starred_url":"https://api.github.com/users/tophf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tophf/subscriptions","organizations_url":"https://api.github.com/users/tophf/orgs","repos_url":"https://api.github.com/users/tophf/repos","events_url":"https://api.github.com/users/tophf/events{/privacy}","received_events_url":"https://api.github.com/users/tophf/received_events","type":"User","site_admin":false},"comments":36,"review_comments":39,"maintainer_can_modify":false,"commits":52,"additions":1017,"deletions":12,"changed_files":6}}
{"actor":{"display_login":"tophf"}}