Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCoreContentText for any websites using mozilla/readability #641

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

xxcdd
Copy link
Contributor

@xxcdd xxcdd commented Mar 6, 2024

Introduce the mozilla/readability library for content parsing and optimize the logic of obtaining core content text.

@mozilla/readability
A standalone version of the readability library used for Firefox Reader View.

@tianzhich
Copy link

It would be great for most sites, especially those that are readable. However, I'm unsure if it's suitable for non-readable sites.

@josStorer
Copy link
Owner

mozilla/readability provides isProbablyReaderable. I think combining it with the original detection method, instead of just keeping mozilla/readability, will yield better results: 777f405

@josStorer josStorer merged commit eb88fc2 into josStorer:master Mar 22, 2024
1 check passed
@josStorer
Copy link
Owner

v2.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants