This Chrome extension allows users to look up selected text in a local CSV file and display the corresponding information in a floating box.
- Retrieve selected text from Chrome's local storage.
- Fetch and parse a local
data.csv
file to find matching information. - Display the result in a floating box on the current web page.
- Clone or download the repository to your local machine.
- Open 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.
- Select some text on any web page.
- Save the selected text to Chrome's local storage (you'll need a mechanism to do this, like a background script or a context menu option).
- The content script will automatically fetch
data.csv
, look up the selected text, and display the result in a floating box.
manifest.json
: Defines the extension's properties and permissions.content.js
: Contains the logic for fetching and displaying the information.data.csv
: The CSV file containing the data for lookup.