- Automatically detects if the current page is a PDF.
- Supports extracting and saving text from PDF files.
- Allows users to save selected text on any webpage using the
Alt+Qshortcut. - Logs selected text or extracted PDF content in the console for debugging.
- Lightweight and efficient, without unnecessary UI clutter.
- Clone or download this repository.
- Go to
edge://extensions/. - Enable Developer mode (toggle switch in the top-right corner).
- Click Load unpacked and select the extension folder.
- Select some text on any webpage.
- Press
Alt+Qto save the selected text. - The saved text will be logged in the browser console and sent to the background script for further handling.
- Open a PDF file in your browser.
- The extension automatically redirects to a custom PDF Viewer.
- Press
Alt+Qto extract the entire text content of the PDF and save it. - The extracted text will be logged in the browser console and sent to the background script.
- Open the browser Developer Tools (F12).
- Check the Console tab for logs:
- Selected text or extracted PDF content will be displayed.
- Background script responses will also be logged here.
- 克隆或下载本仓库。
- 打开浏览器的扩展程序页面:
edge://extensions/。 - 启用 开发者模式(页面右上角的开关)。
- 点击 加载已解压的扩展程序,选择扩展程序所在的文件夹。
- 在任意网页上选中一段文字。
- 按下快捷键
Alt+Q即可保存选中的文本。 - 保存的文本会显示在浏览器的控制台,并发送到后台脚本进行进一步处理。
- 点击插件图标,点击下载文件,即可下载 浏览器打开后 你所选中 并 alt+Q 的 excel文件(为啥是excel? 方便背单词)。
- 在浏览器中打开 PDF 文件。
- 扩展程序会自动重定向到自定义的 PDF 查看器。
- 按下快捷键
Alt+Q,提取 PDF 的全部文本内容并保存。 - 提取的文本内容会显示在浏览器的控制台,并发送到后台脚本。
- 点击插件图标,点击下载文件,即可下载 浏览器打开后 你所选中 并 alt+Q 的 excel文件。
- 打开浏览器的 开发者工具(快捷键 F12)。
- 在 控制台(Console) 标签中可以查看以下内容:
- 选中的文本或提取的 PDF 内容。
- 后台脚本的响应信息。
- Text Selection:
- Detects selected text on normal web pages.
- Allows saving selected text using the
Alt+Qshortcut.
- PDF Detection:
- Automatically detects if the current page is a PDF.
- Redirects to a custom PDF Viewer for enhanced handling.
- PDF Extraction:
- Extracts the entire text content of a PDF file.
- Logs extracted text in the console and sends it to the background script.
- Keyboard Shortcuts:
Alt+Qis the universal shortcut for saving selected text or PDF content.
- Lightweight & Clean UI:
- No additional clutter or UI components; operates in the background.
- Cross-Origin Restrictions:
- For security reasons, some PDFs hosted on third-party websites might not be accessible due to CORS issues.
- UI Notifications:
- No visual notifications for save actions on some websites; relies on console logging.
For any issues or feature requests, feel free to open an issue in this repository.