Đọc ebook lớn trên Google Drive, không cần tải về
PDF, EPUB và Google Docs/Slides lưu trên Drive mở ngay trong tab trình duyệt. Extension chỉ nạp đúng đoạn dữ liệu của trang bạn đang xem, nên file vài trăm MB mở nhanh dù Drive báo “không xem trước được”, và ổ cứng không nhận thêm byte nào.
Làm được gì
| Loại | Extension làm gì |
|---|---|
| Nạp theo đoạn 1 MB qua HTTP Range, render lười từng trang, phóng to, vừa chiều rộng, bôi đen và copy chữ, nhớ trang đang đọc | |
| EPUB | Mục lục, lật trang, đổi cỡ chữ, nhớ vị trí; file nạp vào bộ nhớ, không ghi xuống đĩa |
| Google Docs, Slides | Xuất PDF qua Drive API rồi đọc |
| Tủ sách | Sách đã chọn được nhớ lại trên máy bạn; chọn nhiều cuốn một lúc trong cửa sổ Drive |
| File trên máy | Mở PDF/EPUB trong máy, không cần đăng nhập Google |
Cài đặt
- Tải ZIP ở nút trên, giải nén vào một thư mục cố định (ví dụ
D:\lanhmar\drive-ebook-reader). - Mở
chrome://extensions(Edge:edge://extensions), bật Developer mode, bấm Load unpacked, chọn thư mục vừa giải nén. ID extension luôn làbijcnaofiojlemmbghgcljfekdaoghbf. - Bấm icon extension → Chọn sách từ Google Drive, đăng nhập Google, chọn một hay nhiều cuốn trong cửa sổ Drive. Sách vào Tủ sách và mở ngay; lần sau bấm nút tím “Đọc không cần tải” trên trang Drive của cuốn đó là đọc luôn.
Extension chỉ xin quyền drive.file: Google chỉ cho nó đọc đúng những file bạn tự chọn trong cửa sổ Drive, không đọc được gì khác. Vì vậy cuốn nào chưa chọn thì extension sẽ mở cửa sổ chọn giúp bạn (đã điền sẵn tên để tìm), chọn một lần là xong.
Extension dùng dữ liệu Google của bạn như thế nào
- Xin duy nhất quyền
drive.file: Google chỉ cấp quyền đọc với những file bạn chọn trong cửa sổ Google Picker. Extension không thể thấy hay đọc file nào khác trong Drive của bạn, không tạo, sửa, xoá hay chia sẻ file. - Dữ liệu đi thẳng từ
www.googleapis.comvề trình duyệt của bạn. Không có máy chủ của LANHMAR hay bên thứ ba, không phân tích, không quảng cáo. - Nội dung file chỉ nằm trong bộ nhớ tab khi đang đọc. Trên máy chỉ lưu vị trí đọc, cỡ chữ, giao diện.
- Thu hồi quyền bất cứ lúc nào tại myaccount.google.com/permissions.
Chi tiết trong Chính sách quyền riêng tư.
Cách hoạt động
- Đăng nhập bằng
chrome.identity, token do Chrome quản lý. - PDF.js nhận một
PDFDataRangeTransporttuỳ biến: mỗi lần cần dữ liệu nó gửi headerRangetới Drive API và nhận206 Partial Content, đoạn 1 MB, tắt tự tải nốt phần còn lại. - Chỉ render trang gần vùng nhìn, trang ở xa được giải phóng; thanh trên cùng hiện đúng lượng dữ liệu đã nạp.
- Thử nghiệm với PDF 24 MB: mở lấy khoảng 3 MB, nhảy tới trang 20 lấy thêm khoảng 4 MB.
Tác giả: Dương Thị Lan Anh (LANHMAR) · Kho báu · Chính sách quyền riêng tư · Liên hệ
Read large ebooks on Google Drive without downloading
PDF, EPUB and Google Docs/Slides stored in Drive open right in a browser tab. The extension fetches only the byte ranges of the page you are looking at, so files of several hundred MB open quickly even when Drive says “preview unavailable”, and nothing lands on your disk.
What it does
| Type | What the extension does |
|---|---|
| Fetched in 1 MB chunks over HTTP Range, lazy page rendering, zoom, fit width, text selection and copy, remembers your page | |
| EPUB | Table of contents, page turns, font size, remembers position; loaded in memory, never written to disk |
| Google Docs, Slides | Exported to PDF through the Drive API, then read |
| Library | Picked books are remembered on your device; select several at once in the Drive window |
| Local files | Opens PDF/EPUB from your computer, no Google sign-in needed |
Install
- Download the ZIP above and unzip it into a permanent folder (for example
D:\lanhmar\drive-ebook-reader). - Open
chrome://extensions(Edge:edge://extensions), turn on Developer mode, click Load unpacked and pick the unzipped folder. The extension ID is alwaysbijcnaofiojlemmbghgcljfekdaoghbf. - Click the extension icon → Pick books from Google Drive, sign in with Google and pick one or more books in the Drive window. They land in your Library and open at once; next time, the purple “Read without downloading” button on that book's Drive page opens it directly.
The extension only requests the drive.file scope: Google lets it read exactly the files you pick in the Drive window and nothing else. So for a book you have not picked yet, the extension opens the picker for you (with the name pre-filled); picking it once is enough.
How the extension uses your Google data
- Requests only the
drive.filescope: Google grants read access solely to the files you select in the Google Picker window. The extension cannot see or read any other file in your Drive, and never creates, edits, deletes or shares files. - Data flows directly from
www.googleapis.comto your browser. No LANHMAR or third-party server, no analytics, no ads. - File content stays in the tab's memory only while you read. Only reading position, font size and theme are stored on your device.
- Revoke access at any time at myaccount.google.com/permissions.
Details in the Privacy Policy.
How it works
- Signs in with
chrome.identity; the token is managed by Chrome. - PDF.js gets a custom
PDFDataRangeTransport: whenever it needs data it sends aRangeheader to the Drive API and receives206 Partial Content, 1 MB at a time, with background auto-fetch turned off. - Only pages near the viewport are rendered and far pages are released; the top bar shows exactly how much data has been fetched.
- Tested with a 24 MB PDF: opening fetched about 3 MB, jumping to page 20 another 4 MB.
Author: Dương Thị Lan Anh (LANHMAR) · Treasure · Privacy Policy · Contact