Privacy Lens is a browser extension that analyzes websites for privacy-impacting behaviors, including tracking scripts, cookies, third-party requests, and privacy policy transparency. It generates a privacy score and an optional AI-powered summary to help users understand website risks.
============================================================ FEATURES ============================================================
REAL-TIME WEBSITE ANALYSIS
AI-POWERED PRIVACY SUMMARY Generates a six-section readable explanation:
Scores are contextualized by the site's category (news, social media, e-commerce, streaming, etc.).
PRIVACY SCORE (0–100) Score penalties:
Score tiers:
SCRIPT BREAKDOWN Each detected script includes:
PRIVACY DATA SUMMARY UI Shows:
============================================================ ARCHITECTURE OVERVIEW ============================================================
Directory structure: src/ background/ (service worker and main logic) contentScripts/ (script detection + policy scraping) controllers/ (popup and background controllers) models/ (PrivacyData, PrivacyScore, Website) services/ (storage, browser API, web requests, AI) views/ (Svelte UI components) popup/ (popup entry file) utils/ (optional helpers)
BACKGROUND SERVICE WORKER
CONTENT SCRIPTS privacyScanner.js:
policyScraper.js:
POPUP (SVELTE COMPONENTS)
AI SERVICE
============================================================ INSTALLATION AND DEVELOPMENT ============================================================
Requirements:
Install dependencies: npm install
Build the extension: npm run build
Load into Chrome:
Popup development preview: vite
============================================================ REQUIRED PERMISSIONS ============================================================
tabs: Detect active tab and URL changes
webRequest: Monitor network requests made by webpages
cookies: Detect cookies set by websites
storage: Save scraped policy text and cached data
scripting: Inject content scripts into webpages
host_permissions:
Required to analyze any website
============================================================ SCORING MODEL SUMMARY ============================================================
Tracking scripts: penalty 0–25
Tracking requests: penalty 0–20
Tracking cookies: penalty 0–20
Missing privacy policy: penalty 10
Final score = 100 - total penalties (minimum 0).
Score tiers:
Excellent: 85–100
Good: 70–84
Fair: 55–69
Poor: 40–54
Very Poor: 0–39
============================================================ ROADMAP / FUTURE ENHANCEMENTS ============================================================
Near-term improvements:
Long-term enhancements:
============================================================ AUTHORS ============================================================
Jackson McGuire
Lead developer: MV3 architecture, background worker, scoring engine, AI summary flow, script classifier integration.
Ben Lambert
Frontend developer: Svelte components, UI structure, early project scaffolding.
============================================================ ACADEMIC CITATION ============================================================
Privacy Lens — Browser Extension for Website Privacy Transparency
University of Colorado Colorado Springs
CS 4930: Privacy & Censorship (2025)
============================================================ LICENSE ============================================================
MIT License