Skip to content

Erfaniaa/noon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOON

A Chrome extension that detects palindromes on web pages.

Installation

  1. Open Chrome and navigate to chrome://extensions.
  2. Enable Developer mode (toggle in the top-right corner).
  3. Click Load unpacked and select the noon/ project folder.

How It Works

  1. The content script walks all visible text nodes on the page.
  2. Text nodes are grouped into contiguous runs (within the same block ancestor).
  3. Each run is scanned using the expand-around-center technique on the cleaned (lowercase, alphanumeric-only) string, with index mapping back to the original DOM positions.
  4. Only maximal palindromes are kept (sub-palindromes of a larger match are removed).
  5. Matches are wrapped in <mark> elements and scrollbar markers are placed on a fixed overlay strip.

Acknowledgements

This project is inspired by, made for, and dedicated to the toppest palindrome enthusiast I've ever know <3

About

Browser extension that detects palindromes

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages