Skip to content

MatissesProjects/Tortured-Phrase-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tortured Phrase Detector (Chrome Extension)

A Chrome extension that automatically scans web pages (e.g., scientific journals, articles) for "tortured phrases" and visually highlights them to alert the reader.

Features

  • Automatic Highlighting: Scans text nodes for known tortured phrases and highlights them.
  • Correction Tooltips: Hover over a highlighted phrase to see its standard equivalent.
  • Dynamic Content Support: Uses MutationObserver to scan newly added content (e.g., infinite scrolling).
  • Badge Count: Displays the number of phrases found on the current page directly on the extension icon.
  • Toggle Switch: Easily enable or disable the detector via the extension popup.

Installation (Development Mode)

  1. Clone this repository.
  2. Open Chrome and navigate to chrome://extensions/.
  3. Enable "Developer mode" in the top right corner.
  4. Click "Load unpacked" and select the project root directory.

Testing

Open test.html in Chrome after installing the extension to see it in action.

Built with

  • Manifest V3
  • Vanilla JavaScript/HTML/CSS
  • TreeWalker API for efficient DOM traversal
  • MutationObserver for dynamic content handling

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors