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

Support reader more in Firefox #52

Merged
merged 1 commit into from
Dec 6, 2023
Merged

Conversation

BrunoBernardino
Copy link
Contributor

This was a feature request at https://kagifeedback.org/d/2558-summarizer-doesnt-work-when-firefox-reader-mode-is-active

This also updates rome to biome and adds an inline message/solution for this error when saving a token.

How it looks with the error in Firefox:

firefox

And in Chrome the message changes a bit:

chrome


kagi_chrome_0.4.3.zip

kagi_firefox_0.4.3.zip

@BrunoBernardino BrunoBernardino self-assigned this Dec 6, 2023
Comment on lines +142 to +145
if (tab?.url?.startsWith('about:reader?url=')) {
const newUrl = new URL(tab.url);
tab.url = newUrl.searchParams.get('url');
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the reader fix. Basically Firefox provides the URL with that protocol.

@BrunoBernardino BrunoBernardino merged commit 8d2d134 into main Dec 6, 2023
1 check passed
@BrunoBernardino BrunoBernardino deleted the feature/support-reader-mode branch December 6, 2023 16:51
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.

1 participant