Cosense Book Review Helper is a Google Chrome extension that allows you to create a book review draft on Helpfeel Cosense (formerly known as Scrapbox) directly from Amazon book pages. It extracts relevant information from the Amazon page and generates a URL with the book details to open a new draft on Cosense.
- Extract book information (title, author, publisher, publication date, book cover image, and Amazon product URL) from Amazon book pages.
- Save your Cosense username in the extension's options.
- Open a new tab with the Cosense book review draft URL, pre-populated with the extracted book information.
- Access the extension functionality through a toolbar icon, context menu, or keyboard shortcut.
- The format of the Cosense book review draft is defined in the
openBookReviewDraft
function inoptions.js
.
- Clone or download this repository to your local machine.
- Open Google Chrome and navigate to
chrome://extensions
. - Enable "Developer mode" by toggling the switch in the top-right corner.
- Click "Load unpacked" and select the directory containing the extension files.
- Visit an Amazon book page (e.g.,
https://www.amazon.com/dp/1234567890
). - Click the extension's toolbar icon, right-click and select "Open Book Review Draft on Cosense" from the context menu, or use the keyboard shortcut (if configured).
- In the extension's popup window, enter your Cosense username and click "Save".
- Click the "Open Book Review Draft" button to open a new tab with the Cosense book review draft URL, pre-populated with the book information.
manifest.json
: The extension's manifest file, defining metadata, permissions, and content scripts.background.js
: The background script, handling context menu creation and opening the book review draft URL.content_script.js
: The content script, extracting book information from the Amazon page.options.html
: The HTML file for the extension's popup window and options page.options.js
: The JavaScript file for handling user interactions in the popup window and options page. The format of the Cosense book review draft is defined in theopenBookReviewDraft
function.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.