{"action":"opened","number":5009,"pull_request":{"url":"https://api.github.com/repos/qutebrowser/qutebrowser/pulls/5009","id":315764427,"node_id":"MDExOlB1bGxSZXF1ZXN0MzE1NzY0NDI3","html_url":"https://github.com/qutebrowser/qutebrowser/pull/5009","diff_url":"https://github.com/qutebrowser/qutebrowser/pull/5009.diff","patch_url":"https://github.com/qutebrowser/qutebrowser/pull/5009.patch","issue_url":"https://api.github.com/repos/qutebrowser/qutebrowser/issues/5009","number":5009,"state":"open","locked":false,"title":"New readability userscript based on Mozilla's readability library","user":{"login":"rien333","id":10417027,"node_id":"MDQ6VXNlcjEwNDE3MDI3","avatar_url":"https://avatars0.githubusercontent.com/u/10417027?v=4","gravatar_id":"","url":"https://api.github.com/users/rien333","html_url":"https://github.com/rien333","followers_url":"https://api.github.com/users/rien333/followers","following_url":"https://api.github.com/users/rien333/following{/other_user}","gists_url":"https://api.github.com/users/rien333/gists{/gist_id}","starred_url":"https://api.github.com/users/rien333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rien333/subscriptions","organizations_url":"https://api.github.com/users/rien333/orgs","repos_url":"https://api.github.com/users/rien333/repos","events_url":"https://api.github.com/users/rien333/events{/privacy}","received_events_url":"https://api.github.com/users/rien333/received_events","type":"User","site_admin":false},"body":"The main reason for switching to a new library is that the previously used readability libraries seem largely unmaintained, and hence often rendered a lot distracting elements (see e.g.  the discussion in https://github.com/qutebrowser/qutebrowser/pull/4991). In contrast, Mozilla's readability library will be maintained for the foreseeable future (possibly as long as Firefox is around). Other improvements I observed include slightly more retained textual information and images, as well as the preservation of hyperlinks. The latter feature requires accessing the `QUTE_URL` variable, in contrast to the `QUTE_HTML` variable that was used in the previous script. Apart from this change, this script should be functional equivalent to the older, python based version. \r\n\r\nPossibly interesting downside is that I found it to be noticeably slower, although it's not that bad (I think it generally finishes within 1-3 secs).\r\n\r\nThis is basically my first attempt at javascript, so excuse my mistakes. ","created_at":"2019-09-10T00:18:18Z","updated_at":"2019-09-10T00:18:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/qutebrowser/qutebrowser/pulls/5009/commits","review_comments_url":"https://api.github.com/repos/qutebrowser/qutebrowser/pulls/5009/comments","review_comment_url":"https://api.github.com/repos/qutebrowser/qutebrowser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qutebrowser/qutebrowser/issues/5009/comments","statuses_url":"https://api.github.com/repos/qutebrowser/qutebrowser/statuses/0254ee40817bda259dd743d21c2706dcce27f540","head":{"label":"rien333:readability1","ref":"readability1","sha":"0254ee40817bda259dd743d21c2706dcce27f540","user":{"login":"rien333","id":10417027,"node_id":"MDQ6VXNlcjEwNDE3MDI3","avatar_url":"https://avatars0.githubusercontent.com/u/10417027?v=4","gravatar_id":"","url":"https://api.github.com/users/rien333","html_url":"https://github.com/rien333","followers_url":"https://api.github.com/users/rien333/followers","following_url":"https://api.github.com/users/rien333/following{/other_user}","gists_url":"https://api.github.com/users/rien333/gists{/gist_id}","starred_url":"https://api.github.com/users/rien333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rien333/subscriptions","organizations_url":"https://api.github.com/users/rien333/orgs","repos_url":"https://api.github.com/users/rien333/repos","events_url":"https://api.github.com/users/rien333/events{/privacy}","received_events_url":"https://api.github.com/users/rien333/received_events","type":"User","site_admin":false},"repo":{"id":123424864,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM0MjQ4NjQ=","name":"qutebrowser","full_name":"rien333/qutebrowser","private":false,"owner":{"login":"rien333","id":10417027,"node_id":"MDQ6VXNlcjEwNDE3MDI3","avatar_url":"https://avatars0.githubusercontent.com/u/10417027?v=4","gravatar_id":"","url":"https://api.github.com/users/rien333","html_url":"https://github.com/rien333","followers_url":"https://api.github.com/users/rien333/followers","following_url":"https://api.github.com/users/rien333/following{/other_user}","gists_url":"https://api.github.com/users/rien333/gists{/gist_id}","starred_url":"https://api.github.com/users/rien333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rien333/subscriptions","organizations_url":"https://api.github.com/users/rien333/orgs","repos_url":"https://api.github.com/users/rien333/repos","events_url":"https://api.github.com/users/rien333/events{/privacy}","received_events_url":"https://api.github.com/users/rien333/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rien333/qutebrowser","description":"A keyboard-driven, vim-like browser based on PyQt5.","fork":true,"url":"https://api.github.com/repos/rien333/qutebrowser","forks_url":"https://api.github.com/repos/rien333/qutebrowser/forks","keys_url":"https://api.github.com/repos/rien333/qutebrowser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rien333/qutebrowser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rien333/qutebrowser/teams","hooks_url":"https://api.github.com/repos/rien333/qutebrowser/hooks","issue_events_url":"https://api.github.com/repos/rien333/qutebrowser/issues/events{/number}","events_url":"https://api.github.com/repos/rien333/qutebrowser/events","assignees_url":"https://api.github.com/repos/rien333/qutebrowser/assignees{/user}","branches_url":"https://api.github.com/repos/rien333/qutebrowser/branches{/branch}","tags_url":"https://api.github.com/repos/rien333/qutebrowser/tags","blobs_url":"https://api.github.com/repos/rien333/qutebrowser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rien333/qutebrowser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rien333/qutebrowser/git/refs{/sha}","trees_url":"https://api.github.com/repos/rien333/qutebrowser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rien333/qutebrowser/statuses/{sha}","languages_url":"https://api.github.com/repos/rien333/qutebrowser/languages","stargazers_url":"https://api.github.com/repos/rien333/qutebrowser/stargazers","contributors_url":"https://api.github.com/repos/rien333/qutebrowser/contributors","subscribers_url":"https://api.github.com/repos/rien333/qutebrowser/subscribers","subscription_url":"https://api.github.com/repos/rien333/qutebrowser/subscription","commits_url":"https://api.github.com/repos/rien333/qutebrowser/commits{/sha}","git_commits_url":"https://api.github.com/repos/rien333/qutebrowser/git/commits{/sha}","comments_url":"https://api.github.com/repos/rien333/qutebrowser/comments{/number}","issue_comment_url":"https://api.github.com/repos/rien333/qutebrowser/issues/comments{/number}","contents_url":"https://api.github.com/repos/rien333/qutebrowser/contents/{+path}","compare_url":"https://api.github.com/repos/rien333/qutebrowser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rien333/qutebrowser/merges","archive_url":"https://api.github.com/repos/rien333/qutebrowser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rien333/qutebrowser/downloads","issues_url":"https://api.github.com/repos/rien333/qutebrowser/issues{/number}","pulls_url":"https://api.github.com/repos/rien333/qutebrowser/pulls{/number}","milestones_url":"https://api.github.com/repos/rien333/qutebrowser/milestones{/number}","notifications_url":"https://api.github.com/repos/rien333/qutebrowser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rien333/qutebrowser/labels{/name}","releases_url":"https://api.github.com/repos/rien333/qutebrowser/releases{/id}","deployments_url":"https://api.github.com/repos/rien333/qutebrowser/deployments","created_at":"2018-03-01T11:16:20Z","updated_at":"2019-09-09T23:54:41Z","pushed_at":"2019-09-10T00:03:34Z","git_url":"git://github.com/rien333/qutebrowser.git","ssh_url":"git@github.com:rien333/qutebrowser.git","clone_url":"https://github.com/rien333/qutebrowser.git","svn_url":"https://github.com/rien333/qutebrowser","homepage":"https://www.qutebrowser.org/","size":37777,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"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","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"qutebrowser:master","ref":"master","sha":"c7675a89a271f6f6a39e58439a758fbbd5dcd9f0","user":{"login":"qutebrowser","id":21955151,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTU1MTUx","avatar_url":"https://avatars1.githubusercontent.com/u/21955151?v=4","gravatar_id":"","url":"https://api.github.com/users/qutebrowser","html_url":"https://github.com/qutebrowser","followers_url":"https://api.github.com/users/qutebrowser/followers","following_url":"https://api.github.com/users/qutebrowser/following{/other_user}","gists_url":"https://api.github.com/users/qutebrowser/gists{/gist_id}","starred_url":"https://api.github.com/users/qutebrowser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qutebrowser/subscriptions","organizations_url":"https://api.github.com/users/qutebrowser/orgs","repos_url":"https://api.github.com/users/qutebrowser/repos","events_url":"https://api.github.com/users/qutebrowser/events{/privacy}","received_events_url":"https://api.github.com/users/qutebrowser/received_events","type":"Organization","site_admin":false},"repo":{"id":21244505,"node_id":"MDEwOlJlcG9zaXRvcnkyMTI0NDUwNQ==","name":"qutebrowser","full_name":"qutebrowser/qutebrowser","private":false,"owner":{"login":"qutebrowser","id":21955151,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTU1MTUx","avatar_url":"https://avatars1.githubusercontent.com/u/21955151?v=4","gravatar_id":"","url":"https://api.github.com/users/qutebrowser","html_url":"https://github.com/qutebrowser","followers_url":"https://api.github.com/users/qutebrowser/followers","following_url":"https://api.github.com/users/qutebrowser/following{/other_user}","gists_url":"https://api.github.com/users/qutebrowser/gists{/gist_id}","starred_url":"https://api.github.com/users/qutebrowser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qutebrowser/subscriptions","organizations_url":"https://api.github.com/users/qutebrowser/orgs","repos_url":"https://api.github.com/users/qutebrowser/repos","events_url":"https://api.github.com/users/qutebrowser/events{/privacy}","received_events_url":"https://api.github.com/users/qutebrowser/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/qutebrowser/qutebrowser","description":"A keyboard-driven, vim-like browser based on PyQt5.","fork":false,"url":"https://api.github.com/repos/qutebrowser/qutebrowser","forks_url":"https://api.github.com/repos/qutebrowser/qutebrowser/forks","keys_url":"https://api.github.com/repos/qutebrowser/qutebrowser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qutebrowser/qutebrowser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qutebrowser/qutebrowser/teams","hooks_url":"https://api.github.com/repos/qutebrowser/qutebrowser/hooks","issue_events_url":"https://api.github.com/repos/qutebrowser/qutebrowser/issues/events{/number}","events_url":"https://api.github.com/repos/qutebrowser/qutebrowser/events","assignees_url":"https://api.github.com/repos/qutebrowser/qutebrowser/assignees{/user}","branches_url":"https://api.github.com/repos/qutebrowser/qutebrowser/branches{/branch}","tags_url":"https://api.github.com/repos/qutebrowser/qutebrowser/tags","blobs_url":"https://api.github.com/repos/qutebrowser/qutebrowser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qutebrowser/qutebrowser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qutebrowser/qutebrowser/git/refs{/sha}","trees_url":"https://api.github.com/repos/qutebrowser/qutebrowser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qutebrowser/qutebrowser/statuses/{sha}","languages_url":"https://api.github.com/repos/qutebrowser/qutebrowser/languages","stargazers_url":"https://api.github.com/repos/qutebrowser/qutebrowser/stargazers","contributors_url":"https://api.github.com/repos/qutebrowser/qutebrowser/contributors","subscribers_url":"https://api.github.com/repos/qutebrowser/qutebrowser/subscribers","subscription_url":"https://api.github.com/repos/qutebrowser/qutebrowser/subscription","commits_url":"https://api.github.com/repos/qutebrowser/qutebrowser/commits{/sha}","git_commits_url":"https://api.github.com/repos/qutebrowser/qutebrowser/git/commits{/sha}","comments_url":"https://api.github.com/repos/qutebrowser/qutebrowser/comments{/number}","issue_comment_url":"https://api.github.com/repos/qutebrowser/qutebrowser/issues/comments{/number}","contents_url":"https://api.github.com/repos/qutebrowser/qutebrowser/contents/{+path}","compare_url":"https://api.github.com/repos/qutebrowser/qutebrowser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qutebrowser/qutebrowser/merges","archive_url":"https://api.github.com/repos/qutebrowser/qutebrowser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qutebrowser/qutebrowser/downloads","issues_url":"https://api.github.com/repos/qutebrowser/qutebrowser/issues{/number}","pulls_url":"https://api.github.com/repos/qutebrowser/qutebrowser/pulls{/number}","milestones_url":"https://api.github.com/repos/qutebrowser/qutebrowser/milestones{/number}","notifications_url":"https://api.github.com/repos/qutebrowser/qutebrowser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qutebrowser/qutebrowser/labels{/name}","releases_url":"https://api.github.com/repos/qutebrowser/qutebrowser/releases{/id}","deployments_url":"https://api.github.com/repos/qutebrowser/qutebrowser/deployments","created_at":"2014-06-26T14:59:34Z","updated_at":"2019-09-09T20:45:32Z","pushed_at":"2019-09-09T20:45:33Z","git_url":"git://github.com/qutebrowser/qutebrowser.git","ssh_url":"git@github.com:qutebrowser/qutebrowser.git","clone_url":"https://github.com/qutebrowser/qutebrowser.git","svn_url":"https://github.com/qutebrowser/qutebrowser","homepage":"https://www.qutebrowser.org/","size":41610,"stargazers_count":4815,"watchers_count":4815,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":665,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":760,"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","node_id":"MDc6TGljZW5zZTk="},"forks":665,"open_issues":760,"watchers":4815,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qutebrowser/qutebrowser/pulls/5009"},"html":{"href":"https://github.com/qutebrowser/qutebrowser/pull/5009"},"issue":{"href":"https://api.github.com/repos/qutebrowser/qutebrowser/issues/5009"},"comments":{"href":"https://api.github.com/repos/qutebrowser/qutebrowser/issues/5009/comments"},"review_comments":{"href":"https://api.github.com/repos/qutebrowser/qutebrowser/pulls/5009/comments"},"review_comment":{"href":"https://api.github.com/repos/qutebrowser/qutebrowser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qutebrowser/qutebrowser/pulls/5009/commits"},"statuses":{"href":"https://api.github.com/repos/qutebrowser/qutebrowser/statuses/0254ee40817bda259dd743d21c2706dcce27f540"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":63,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"rien333"}}