Trust Checker is a Chrome Extension that detects dark patterns and manipulative UI elements on websites.
It identifies:
- ⏱ Fake urgency timers
- 📦 Low stock pressure messages
- 👀 Fake viewer counters
It also generates a Trust Score and highlights suspicious elements directly on the webpage.
- Scans webpage DOM using a content script
- Detects patterns using regex
- Sends data to backend
- Backend returns:
- Trust Score
- Issues
- Explanation
- Highlights suspicious elements on the page
project-root/
│
├── dist/ # ✅ Built extension (use this)
├── src/
│ ├── App.js # Popup UI (React)
│ ├── contentScript.js # Pattern detection + highlighting
│ └── ...
├── manifest.json # Extension config
├── server.js # Backend
└── README.md- Click Code → Download ZIP
OR:
git clone https://github.com/Hacker-KM/Dark_pattern_detector.git- Extract the ZIP file
- Go to project directory
- Locate the
distfolder
👉 This folder contains the final extension build
Open Chrome and go to:
chrome://extensions/
- Toggle ON Developer Mode (top right corner)
- Click "Load unpacked"
- Select the
distfolder
- You will see Trust Checker
- Click 📌 Pin icon to pin it
Prefer:
- Amazon
- Flipkart
- Any e-commerce site
- Click Trust Checker icon in Chrome toolbar
-
It will:
- Scan page
- Detect patterns
- Call backend
You will see:
- ✅ Trust Score
- ⚠ Issues detected
- 🧠 Explanation
-
Suspicious elements will be:
- 🔴 Red → Timer
- 🟠 Orange → Stock
- 🔵 Blue → Viewers
Could not establish connection. Receiving end does not exist.
-
Reload extension:
chrome://extensions/ → Click Reload -
Refresh the webpage
-
Make sure you're NOT on:
- chrome:// pages
- Chrome Web Store
npm installnpm run buildnode server.jsBackend runs on:
http://localhost:3000
| Type | Example |
|---|---|
| Timer | 12:30 |
| Stock | Only 3 left |
| Viewer | 25 people viewing |
- React (Popup UI)
- Chrome Extension APIs (Manifest v3)
- JavaScript (DOM analysis)
- Node.js + Express
- Axios
- Detects dark patterns
- Highlights elements on page
- Trust score system
- Lightweight & fast
- Full-stack project
- AI-based detection
- Chrome Web Store publish
- Advanced UI dashboard
- Real-time monitoring
Kartik Mishra