Inspiration
In a world with evolving scam patterns and the evolution of AI more and more people are susceptible now. The same internet that once connected us now leaves millions vulnerable to deception. We are, sadly, lacking defense against it. Every one of us, at some point, has stumbled across a spam comment or scam post. It’s no longer a nuisance - it’s a quiet epidemic. In the AI age mass producing it is easier than ever before
When they are evolving why are we not?
Introducing SpamuraiAI - forged in code and discipline like a digital samurai sworn to protect the web. Just as a samurai’s blade separates truth from illusion, our Chrome extension uses built-in AI to cut through spam, scams, and comment clutter while preserving the authentic conversations.
Even a small act of resistance matters. All great things began with someone who refused to look away. SpamuraiAI is that modern act of defiance - AI fighting back with its own weapon, using intelligence to detect evolving scam patterns and protect what truly connects us: genuine human interaction.
What it does
SpamuraiAI defends digital spaces by bringing AI-powered comment protection right into your browser. Unlike traditional moderation tools that rely on keyword filters or blanket removal, SpamuraiAI uses intelligent pattern recognition to preserve genuine conversations while eliminating deceptive spam and scam comments.
At its core, SpamuraiAI uses Chrome’s Built-in Gemini Nano AI to monitor and process YouTube comment sections with precision. It identifies suspicious behavioral and linguistic patterns, recognizing subtle indicators that typical filters miss.
Its protection system is designed across three key features:
- “Keyword Awareness" Recognizes suspicious or repetitive phrases often used in spam and scam comments.
- “Behavioral Pattern Detection" Observes comment tone, structure, and repetition patterns to identify spam-like behavior.
- “Contextual Understanding” Preserves meaningful discussions by understanding comment intent rather than just scanning for banned words.
How I built it
he strength of SpamuraiAI lies in its privacy-first, low-interaction design. Once activated, it quietly works in the background, requiring no extra input or setup — you can simply forget it’s there while it automatically scans and highlights spam and scam comments.
By combining Chrome’s Gemini Nano AI and the Prompt API, we created a real-time system that:
- Analyzes comment sections efficiently as it loads and DOM changes
- Detects YouTube video switches dynamically without breaking functionality
- Ignores main channel comments, since they’re often sponsored or promotional in nature
- Applies layered AI filtering to identify scam or spam patterns
- Distinguishes between promotional content, harmless repetition, and true deception
- Preserves authentic, user-generated discussions
The foundation was built on two key principles: protection without censorship, and AI transparency.
Challenges and Breakthroughs
Building SpamuraiAI meant confronting the constantly evolving nature of spam and deception. We needed to:
- Train prompt structures to recognize modern AI-generated spam patterns
- Handle dynamic YouTube DOM updates and comment loading behaviors
- Balance real-time detection speed with browser performance
- Prevent false positives that could erase legitimate community interactions
Through continuous testing and prompt optimization, SpamuraiAI achieved a delicate balance between precision and performance, setting a new standard for AI-assisted web moderation.y.
Accomplishments that we're proud of
- Built a functional prototype that actually identifies spam reliably.
- Achieved smooth detection without noticeable slowdown in the YouTube UI.
- Designed an intuitive interface where users can instantly see highlighted spam patterns.
- Learned how to blend AI reasoning with real-world UX without breaking the platform’s flow.
- Managed to complete it as a first-time hackathon participant and new coder, balancing coding, learning, and life’s chaos along the way.
What we learned
Building SpamuraiAI was as much about understanding scammers as it was about understanding code. Along the way, we discovered that:
- Spam language evolves faster than static rule-based systems, demanding adaptive AI that understands context, not just keywords..
- Balancing precision and recall is crucial - flagging too much breaks trust, but missing real threats weakens protection.
- Building a modular Chrome extension taught us how to structure clean, scalable code while keeping performance fast.
- Most importantly, we realized how much can be learned under tight deadlines; every bug and test shaped our understanding of real-world AI behavior.
What's next for Spamurai-AI
SpamuraiAI started with YouTube, but our vision doesn’t stop there. The next steps are to:
- Expanding protection to other platforms like Twitter/X, Reddit, and Instagram.
- Introducing community-driven feedback loops to continuously improve AI detection accuracy
- Adding an optional Spam Reporting feature to crowdsource trust data from everyday users.
- Implementing reply scanning on/off, allowing users to trace deceptive patterns in full conversation threads.
- Enhancing visual customization for highlighted comments, giving users more control over how spam is displayed.
Built With
- css
- html
- javascript
- promptapi


Log in or sign up for Devpost to join the conversation.