Skip to content

fix(vi/hako): fix chapterPath parsing, decrypt protected content, format notes tag, remove suggestion banners#2270

Merged
rajarsheechatterjee merged 2 commits into
lnreader:masterfrom
tranduytoan:fix/hako-plugin
Jul 14, 2026
Merged

fix(vi/hako): fix chapterPath parsing, decrypt protected content, format notes tag, remove suggestion banners#2270
rajarsheechatterjee merged 2 commits into
lnreader:masterfrom
tranduytoan:fix/hako-plugin

Conversation

@tranduytoan

@tranduytoan tranduytoan commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR fixes the Hako plugin (ln.hako) which was broken due to encrypted chapter content and incorrect chapter path parsing. It also cleans up the chapter content by removing recommendation banners and formats note tags.

Details of Changes

  • Decryption Support: Implemented decryption helpers (XOR shuffle, base64 reverse) to decrypt the protected chapter content (#chapter-c-protected).
  • Path Parsing Fix: Fixed the chapter path parsing issue where the domain was not stripped correctly, causing fetch errors.
  • Note Tags Formatting: Formatted [note(\d+)] tags into HTML span/anchor tags following the original website's logic for proper rendering.
  • Content Cleanup: Removed recommendation/suggestion banners at the end of chapters to provide a cleaner reading experience.
  • Version Bump: Bumped the plugin version to 1.1.1.

Checklist

  • Update version code if an existing plugin was modified
  • Test changes in Plugin Playground or the app
  • Reference related issues in the PR body (e.g. Closes #xyz) (No related issues)

…content

- Fix `parseNovel` extracting full URL instead of relative path for chapters.
- Implement decryption logic for protected chapter content (`#chapter-c-protected`) using XOR shuffle, base64 reverse, and plain base64 decoding.
…to 1.1.1

- Format `[note(\d+)]` tags into HTML span/anchor tags for proper rendering (following the original website's logic)
- Remove recommendation/suggestion banners at the end of chapters
- Bump plugin version to 1.1.1
@tranduytoan tranduytoan changed the title fix(vi/hako): fix chapterPath parsing, decrypt protected content, remove suggestion banners fix(vi/hako): fix chapterPath parsing, decrypt protected content, format notes tag, remove suggestion banners Jun 23, 2026
@rajarsheechatterjee rajarsheechatterjee merged commit 3609f4f into lnreader:master Jul 14, 2026
1 check passed
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.

2 participants