Repository navigation
feat(english/fenrirrealm): add fetchViaWebview fallback for chapter loading - #2904
Merged
rajarsheechatterjee merged 2 commits intoNov 15, 2026
Merged
Conversation
4 tasks done
7ui77
marked this pull request as ready for review
November 15, 2026 14:28
[Low impact] The PR appears safe to merge with its documented companion app dependency. SummaryAdds an optional WebView fallback for Fenrir Realm chapter loading and raises
7ui77 explicitly identifies the companion app change as a dependency and older-app fallback behavior as intentional. Reviews (1) · Last reviewed commit: "fix(english/fenrirrealm): address review..." · Reviewed by Greptile |
rajarsheechatterjee
approved these changes
Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
type(scope): description(e.g.feat(<generator>): add new source)Closes #2900
Closes #2846
Depends on lnreader/lnreader#2128 (
@libs/fetch.fetchViaWebview).Summary
Adds a
fetchViaWebviewfallback toplugins/english/fenrirrealm.ts(bumped to1.2.0) when API token minting or chapter fetching fails (403,401,503,locked, or empty SSR HTML), and scopes DOM extraction to the actual chapter prose container.Evidence
fetchApireturned403 challenge_required/lockedbecause Fenrir Realm stores its read token in JS memory rather than cookies; early DOM matching also risked picking up#reader-areaUI chrome (One long scroll...,Meet the author).pnpm run build:compile,npx eslint plugins/english/fenrirrealm.ts,npx prettier --check plugins/english/fenrirrealm.ts:0errors.https://github.com/lnreader/lnreader/pull/2128) on Android device (Pixel_4,127.168.1.1:10001):HiddenWebViewexecuted and extracted rendered DOM; interactive human-verification gates still cleanly prompt WebView verification instead of saving gate text as chapter content.Merge Danger
Door: two-way
Additive fallback guarded by
typeof fetchViaWebview === 'function'; older app versions withoutfetchViaWebviewfall back to the existingverifyInWebViewError.Blast Radius: low
Scoped strictly to
plugins/english/fenrirrealm.ts.