Compound Lookup - installation (Chrome, Edge, Brave or Arc)
===========================================================

1. Unzip this archive if you haven't already, and put the resulting
   "compound-lookup-1.2.0" folder somewhere permanent - Documents, say.

   Chrome loads the extension from this folder every time it starts, so if the
   folder is moved or deleted later, the extension stops working. Don't leave it
   in Downloads.

2. Open your browser and go to:  chrome://extensions

3. Turn on "Developer mode" (toggle, top right).

4. Click "Load unpacked" (top left) and select the folder from step 1 -
   the one containing manifest.json. Select the FOLDER, not the zip file.

5. "Compound Lookup" appears in the list. That's it.


Using it
--------
Select a compound name on any web page, right-click, and choose

    Look up "..."  ->  PubChem
                       ChEMBL
                       ID lookup

A card appears with the 2D structure, molecular formula and mass, and the
compound's identifier as a link to the full record. If several compounds match,
up to three alternatives appear underneath - click one to bring it into the
main view. A match the database is not confident about is labelled "uncertain".

"ID lookup" is different: instead of one database it cross-references the drug
across ChEMBL, DrugBank, PDB, SureChEMBL and PubChem at once, and shows the
InChIKey (click it to copy). Each identifier links to that database's record.

Dismiss the card with Escape, the x, or by clicking elsewhere.

To check it's working: select the word  aspirin  and look it up. You should get
Aspirin, CID 2244.


Things worth knowing
--------------------
- Chrome may warn about "extensions running in developer mode" on startup.
  That is expected for any extension installed this way. Choose "Keep".

- The card cannot appear on chrome:// pages, the Chrome Web Store, or in the
  PDF viewer. Browsers forbid extensions from running there. Use a normal
  https:// page.

- The only thing this extension sends anywhere is the text you select, and it
  goes only to the database you picked from the menu - PubChem (NIH), ChEMBL or
  UniChem (both EMBL-EBI). Nothing is stored, logged or sent anywhere else.

- There is no auto-update. New versions arrive as a new zip.


Data from PubChem (NIH/NLM/NCBI), used via its public PUG-REST API.
