Skip to content

lysharing/manga-rtl-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“– Manga RTL Reader - Chrome Extension

Chrome extension for reading manga online with an optimized Right-to-Left reading interface.

โœจ Features

๐ŸŽฏ Reading Modes

  • Single Page Mode: One page at a time in fullscreen
  • Dynamic Double Page Mode: Two pages side by side (like a real open manga)
    • Any page can be paired with its neighbor
    • Smooth navigation between all combinations

๐Ÿš€ Performance

  • Smart image preloading with progress bar
  • Smooth navigation with scroll-snap
  • Real-time page indicator

โŒจ๏ธ Controls

Keyboard Shortcuts

Key Action
โ† / A Next page (RTL)
โ†’ / D Previous page
Space Previous page
Shift + Space Next page
Esc Exit reading mode

Interface

  • ๐Ÿ“– Double: Toggle between single/double page mode
  • Quit: Exit and reload page

๐ŸŽจ Design

  • Black background for visual comfort
  • Minimalist interface with custom colors
  • Centered images with optimal margins (96vh ร— 98vw)

๐Ÿ“ฆ Installation

Method 1: Local Installation (Development)

  1. Download files
   git https://github.com/lysharing/manga-rtl-reader.git
   cd manga-rtl-reader
  1. Project structure
๐Ÿ‡ซ๐Ÿ‡ท
    manga-rtl-reader/
    โ”œโ”€โ”€ manifest.json      โ† Configure l'extension (OBLIGATOIRE)
    โ”œโ”€โ”€ background.js      โ† Gรจre les รฉvรฉnements (OBLIGATOIRE)
    โ”œโ”€โ”€ rtl.js             โ† Ton code manga (OBLIGATOIRE)
    โ””โ”€โ”€ README.md          โ† Documentation (optionnel)

๐Ÿ‡บ๐Ÿ‡ธ
    manga-rtl-reader/
    โ”œโ”€โ”€ manifest.json      โ† Configure the extension (REQUIRED)
    โ”œโ”€โ”€ background.js      โ† Handles events (REQUIRED)
    โ”œโ”€โ”€ rtl.js             โ† Your manga code (REQUIRED)
    โ””โ”€โ”€ README.md          โ† Documentation (optional)
  1. Load in Chrome
    • Open Chrome and go to chrome://extensions/
    • Enable Developer mode (top right corner)
    • Click Load unpacked
    • Select the manga-rtl-reader folder

Illustration: Capture dโ€™eฬcran 2025-11-23 aฬ€ 03 17 14

Method 2: Install from Chrome Web Store

[Coming soon]

๐ŸŽฎ Usage

  1. Navigate to a manga site

    • Open a manga chapter on any compatible site
  2. Activate RTL mode

    • Click the extension icon in the toolbar
    • Or use the shortcut (if configured)
  3. Enjoy reading

    • Images load automatically
    • Navigate with arrow keys or mouse
    • Toggle double page mode if desired

๐Ÿ”ง Configuration

Compatible Sites

The extension automatically detects the following image containers:

#container, .container, .reader, .chapter-content,
.reading-content, #chapter, #chapter-body, .entry-content,
.page-break, .image-container, .vung-doc, .manga-images

Fallback: If no container is detected, the extension searches for all images larger than 200ร—200 pixels.

Customization

To modify button colors, edit in rtl.js:

// Double button (green)
background: #0dd794ff;

// Quit button (purple)
background: #b921d4ff;

๐Ÿ“‹ Project Files

manifest.json

{
  "manifest_version": 3,
  "name": "Manga RTL Reader",
  "version": "1.0.0",
  "description": "Optimized manga reader for Right-to-Left reading",
  "permissions": ["activeTab", "scripting"],
  "action": {
    "default_title": "Activate RTL mode"
  },
  "background": {
    "service_worker": "background.js"
  },
  "icons": {
    "128": "icon.png"
  }
}

background.js

chrome.action.onClicked.addListener((tab) => {
  chrome.scripting.executeScript({
    target: { tabId: tab.id },
    files: ['rtl.js']
  });
});

๐Ÿ› Troubleshooting

Extension doesn't detect images

  • Verify the page contains <img> tags
  • Try reloading the page before activating the extension
  • Check the developer console (F12) for errors

Double mode not working correctly

  • Reload the extension via chrome://extensions/
  • Verify you have at least 2 images on the page

Keyboard shortcuts not working

  • Verify no other page element has focus
  • Try clicking on the image before using shortcuts

๐ŸŽฏ Roadmap / Future Improvements

  • Zoom on area (click to zoom on a panel)
  • Save reading position
  • Customizable settings (background color, brightness)
  • LTR mode for webtoons/comics
  • Mini-map with page preview
  • Bookmarks to mark favorite pages
  • Reading history

๐Ÿ“ License

MIT License - Free to use and modify

โšœ๏ธ Author

Developed with โค๏ธ for manga lovers


Version: 1.0.0
Last Updated: November 2024

About

Chrome Extension for Manga reader

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors