🚀 Inspiration

In today’s digital world, distraction is the biggest enemy of productivity—especially for students preparing for competitive exams .
I personally struggled with staying focused, constantly switching to Instagram, Facebook, or random websites during study time.

This inspired me to build Distraction Killer AI – a real-time focus guardian that blocks distracting websites the moment you open them.

A simple idea… but extremely powerful for students, developers, and professionals.


🎯 What it does

Distraction Killer AI is a Chrome Extension that protects your concentration using real-time monitoring:

  • âś” Detects distracting websites instantly
  • âś” Shows an alert with a motivational message
  • âś” Closes the distracting tab to protect your focus
  • âś” Allows educational websites like YouTube (for study)
  • âś” Simple ON/OFF focus mode
  • âś” Works 100% offline, no data collection

It acts like a digital bodyguard for your productivity.


🛠️ How I built it

This project is built entirely using:

  • Manifest V3
  • JavaScript
  • HTML + CSS
  • Chrome Extensions API
  • Background service worker
  • Content script for real-time detection

Key features implemented:

  • Focus toggle using popup.js
  • URL detection using runtime message listener
  • Tab auto-closing using chrome.tabs API
  • Custom alert window for blocking
  • Clean UI for simple user experience

⚙️ Architecture

  • popup.html → UI for turning focus ON/OFF
  • background.js → Main controller for blocking
  • content_script.js → Checks every website you visit
  • manifest.json → Extension configuration

đź§  Challenges I faced

  • Understanding Manifest V3 service workers
  • Making real-time communication between popup → background → content script
  • Handling tab closing without breaking user flow
  • Ensuring important sites (YouTube for study) remain unblocked
  • Debugging extension reloading issues

📚 What I learned

  • Deep understanding of Chrome Extensions
  • Message passing system in JavaScript
  • Designing minimal and effective UX
  • Real-time event handling in the browser
  • How to make a complete software project from scratch

This hackathon helped me boost confidence in building practical tools used by real people.


🔮 What’s next for Distraction Killer AI

  • AI-powered smart distraction detection
  • Pomodoro mode with timer
  • Productivity analytics dashboard
  • Custom blocklist created by the user
  • Cloud sync across devices
  • Android app version

My goal is to make this a full productivity ecosystem for students and developers.

Built With

Share this project:

Updates

Submission history