Drug Interaction Lookup Quick-Reference Badge
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
This script scans medical reference and drug information pages—Drugs.com, WebMD, FDA labels, and others—for drug names and displays a floating badge panel showing potential interactions for the detected drugs. It extracts drug names from the page text, cross-references a built-in interaction database of common drug interactions, contraindications, and warnings, and displays a summary of detected interactions with severity color-coding: red for severe, orange for moderate, yellow for mild, green for none. A quick-reference card shows each drug name, interaction status, and a list of interacting substances with detailed notes. Users can export interaction data as CSV or JSON. All interaction history is stored per domain locally for tracking over time.
WHERE IT RUNS
Works on any medical reference or drug information page—Drugs.com, WebMD, FDA labels, Mayo Clinic, MedlinePlus, or any page containing drug names. The script detects drug names using a built-in database of over 30 common medications and their known interactions, making it compatible with most medical reference websites.
HOW TO USE
The panel appears automatically when you visit a medical reference page. It detects drug names from the page text and displays summary stats: total drugs, severe interactions, moderate interactions, and mild/no interactions. Each drug card shows the drug name, severity badge, interacting substances (up to 5), and a note about the interaction. Drugs found multiple times on the page show occurrence counts. Click "Refresh Data" to rescan for updated drug information. Export interaction data as CSV for spreadsheet analysis or as JSON for programmatic use. Use "Clear History" to reset stored snapshots for the current domain. The panel automatically saves a snapshot each time you visit, building a history of drug interactions encountered.
TECHNICAL MECHANISM: DRUG NAME EXTRACTION WITH INTERACTION DATABASE CROSS-REFERENCING
The script uses a built-in database of over 30 common drugs with their interaction data, including interacting substances, severity level (severe/moderate/mild), and notes. It scans the page text for drug names using word-boundary regex matching to avoid partial matches. For each detected drug, it extracts the name, counts occurrences, and captures context (80 characters before and after the drug name). The interaction severity is determined by the drug's entry in the database: severe (red) for high-risk interactions (e.g., warfarin + aspirin, amiodarone + warfarin), moderate (orange) for clinically significant interactions, mild (yellow) for minor interactions, and none (green) for drugs without known interactions in the database. Each interaction entry includes a list of interacting substances and a detailed note explaining the interaction mechanism or risk. The summary calculates counts by severity category. Each snapshot stores the detected drugs with their interactions, severity, and occurrence counts, capped at 30 entries per domain. The export function generates CSV with drug name, severity, interacting substances (semicolon-separated), note, and occurrences.
THE PANEL
The drug interaction badge appears in a draggable, resizable panel that remembers its position per site. The panel shows summary stats, a drug list with severity badges and interaction details, and history. Drag by the header to reposition, collapse to a compact icon with a click, and resize using the bottom-right corner. The panel snaps to screen edges for tidy placement and closes with the Escape key. All settings—panel position—persist per website using GM_setValue, so your view returns exactly as you left it.
PLEASE NOTE
This script requires the free BotGentz extension to run. The interaction database is for informational purposes only and is not a substitute for professional medical advice. The script uses a limited database of common drug interactions; many interactions may not be included. Always consult a healthcare professional for medical decisions. The script does not access your medical data or account credentials—all data is read from the visible page and processed locally. The drug detection may miss drugs not in the database or misidentify non-drug terms that match drug names. All data is stored locally in your browser via GM_setValue and never transmitted. The script is designed for quick reference only, not for clinical decision-making.