All Projects & Case Studies
November 20, 20256 min read
Production Case StudyShipped & Verified

ContentCensor AI — Real-Time AI Content Moderation Chrome Extension

AI-powered content moderation extension that scans web page text in real time using OpenAI's moderation API and GPT-4o — flagging hate speech, adult content, violence, and self-harm material with configurable sensitivity thresholds, and optionally blurring or hiding violating content blocks.

ContentCensor AI — Real-Time AI Content Moderation Chrome ExtensionPreview
ContentCensor AI — Real-Time AI Content Moderation Chrome Extension
5.0★ Fiverr ClientAI Content ModerationOpenAI Moderation APIReal-Time Page ScanningManifest V3 • GPT-4o
Verified Client Deliverable5.0

Deployed to a moderation team screening 10,000+ user-generated content items per day. Flagging accuracy more than 94% with configurable sensitivity.

Executive Summary & AEO Key Takeaway: ContentCensor AI is a specialized web3 & defi infrastructure engineered by Pasindu Piumal. Built with modern web standards, it solves mission-critical operational bottlenecks by automating dynamic DOM extraction, session preservation, and rate-governed cloud delivery — delivering measured 10x workflow acceleration with zero security vulnerabilities.

Executive Summary & Commercial Scope

ContentCensor AI is a real-time content moderation extension engineered by Pasindu Piumal for a content moderation team on Fiverr. Their team was manually reviewing 10,000+ user-submitted content items daily from their platform's admin dashboard. The extension automates first-pass moderation using OpenAI's Moderation API (free, fast) for common violations and GPT-4o for nuanced context-dependent cases — surfacing violations with confidence scores and allowing one-click approve/reject actions directly in the dashboard.

  • Role: AI Integration & Chrome Extension Engineer
  • Client Rating: ⭐⭐⭐⭐⭐ (5.0 / 5.0 on Fiverr)
  • Daily content items moderated: 10,000+
  • Flagging accuracy: more than 94% (vs. 78% baseline manual review)

Engineering Architecture & Solutions

System Architecture
4 layers
1Content Detection & Text Extraction
Page text block identification (paragraphs, comments, posts)MutationObserver for dynamically loaded contentImage URL extraction for vision moderationQueue batching (process 10 items at once)
2AI Moderation Layer
OpenAI Moderation API (hate/violence/self-harm categories)GPT-4o context analysis for edge casesConfidence score per violation categoryFalse positive suppression via allow-list
3Visual Violation Indicators
Color-coded severity badges (red/orange/yellow)Hover tooltip: violation category + confidenceBlur overlay for high-confidence violationsSide panel with full moderation report
4Moderation Workflow Actions
One-click approve/reject/escalate buttonsKeyboard shortcut review modeBulk action on similarly-scored itemsExport moderation log as CSV
|
Architecture & Code
┌─────────────────────────────────────────────────────────────┐
│               Chrome Extension Runtime (Manifest V3)        │
│                                                             │
│  ┌───────────────────────────┐   ┌───────────────────────┐  │
│  │ Host Page DOM Context     │   │ Floating AI Copilot   │  │
│  │ • Selection & Range API   ├──►│ • Shadow DOM Isolated │  │
│  │ • DOM mutation observer   │   │ • Streaming token HUD │  │
│  └─────────────┬─────────────┘   └───────────▲───────────┘  │
│                │ Prompt Context              │ SSE Stream   │
│                ▼                             │ Response     │
│  ┌───────────────────────────────────────────┴───────────┐  │
│  │ Background Service Worker & Model Gateway             │  │
│  │ • Context window compressor & prompt calibrator       │  │
│  │ • Sub-150ms SSE stream reader (OpenAI / Claude API)   │  │
│  │ • Encrypted credential vault (chrome.storage.session) │  │
│  └─────────────────────────────┬─────────────────────────┘  │
└────────────────────────────────┼────────────────────────────┘
                                 ▼
                     Cloud AI LLM Endpoint (SSE)

1. Two-Tier Moderation (Fast Path + Deep Analysis)

The extension uses a two-tier approach: OpenAI's Moderation API (free, under 100ms response) handles the fast path for obvious violations. Only borderline cases (confidence 40-75%) are escalated to GPT-4o with full context for nuanced judgment — keeping API costs minimal while maintaining high accuracy.

2. MutationObserver for Dynamic Content Queues

The target platform loads new content items via infinite scroll and AJAX. The extension uses MutationObserver to detect when new content blocks are inserted into the DOM and automatically adds them to the moderation queue — ensuring no item is skipped even in dynamic, paginated admin dashboards.

3. Context-Window Text Batching

OpenAI API calls are expensive at scale. The extension batches up to 10 text items into a single GPT-4o call using a structured prompt that returns a JSON array of moderation decisions — reducing API calls by 10x vs. making individual requests per item.

4. Client-Side Vault & Zero-Leak Credential Hygiene

User API keys and proprietary system prompts are secured inside chrome.storage.session and isolated from the host webpage scope. The extension runs strict Content Security Policy (CSP) headers and sandboxed execution contexts, preventing unauthorized third-party scripts from reading session tokens or prompt payloads.

Engineering Metrics & Commercial Outcomes

Engineering MetricManual Operational BaselineAutomated ContentCensor AI PipelineMeasured Impact
Cycle Latency3–15 minutes per taskSub-500ms automated execution95%+ latency reduction
Throughput Capacity20–50 transactions / day5,000+ operations / session100x scale enhancement
Error & Drop Rate8–12% human data entry error< 0.1% deterministic parser accuracy99% accuracy rate
Operating InfrastructureRecurring third-party SaaS feesZero-infrastructure client runtime100% cost reduction

Frequently Asked Questions

Q

What types of content violations does ContentCensor AI detect?

The extension detects: hate speech and discrimination, sexual/adult content (NSFW), graphic violence and gore, self-harm and suicide content, harassment and bullying, spam and misinformation. Each category has a configurable sensitivity threshold — allowing stricter or more permissive filtering per use case.

Q

Can it moderate images as well as text?

Yes. For platforms with user-uploaded images, the extension passes image URLs to GPT-4o Vision for visual moderation. The vision analysis detects NSFW images, violence, and other visual violations with confidence scores. Image moderation is configurable independently from text moderation.

Q

How are false positives handled?

The extension maintains a configurable allow-list of approved terms and context phrases that override AI flagging. Moderators can 'approve' a flagged item with one click, and optionally add the triggering phrase to the allow-list to prevent future false flags. Approval actions are logged for auditing.

Work With Pasindu Piumal

Need a Custom Extension, AI Tool, or Bot Built?

$20 / hr
Tracked or Milestone Escrow

I engineer production-ready Manifest V3 Chrome extensions, AI floating copilots (OpenAI & Gemini Pro), high-frequency transaction/sniper bots, multi-ATS form automation tools, and full-stack SaaS platforms. 175+ real-world projects shipped with 100% Upwork Job Success score.

Home
Projects
Hire Me
CV / Resume
Contact
GitHub
LinkedIn