Skip to content

peerhadi/Distraction-Blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🦊 Distraction Detector Firefox Extension

A lightweight Firefox extension that detects whether text/content is related to sports, live matches, trending media, or tech topics using keyword + fuzzy matching.


⚑ What it does

This extension analyzes text and returns:

  • true β†’ distraction content (sports, matches, trends, tech, etc.)
  • false β†’ normal content

Examples detected:

  • man utd vs liverpool
  • live cricket score
  • real mdrid highlights
  • react deployment error
  • virat kohli reels

Even supports typos:

  • socer live
  • uefa chapions league

🧠 Features

  • Large keyword database (sports, clubs, players, tech, media)
  • Team alias resolution (mi β†’ mumbai indians)
  • VS match detection (A vs B)
  • Fuzzy matching for spelling mistakes
  • Normalized text processing
  • Fully offline (no API calls)

🦊 Firefox Setup

1. Load extension

  1. Open Firefox
  2. Go to: about:debugging#/runtime/this-firefox
  3. Click "Load Temporary Add-on"
  4. Select your manifest.json

πŸ”§ How it works

  1. Normalizes text (lowercase, cleaned)
  2. Detects "vs" patterns
  3. Resolves aliases (mi β†’ mumbai indians)
  4. Matches keyword database
  5. Uses fuzzy matching for typos
  6. Returns true/false

🧠 Summary

A simple offline detection engine to identify sports, tech, and trending content inside webpages and help build focus-based Firefox tools.

About

A simple offline detection engine to identify sports, tech, and trending content inside webpages and help build focus-based Firefox tools.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors