Regex Search & Highlight

Search and highlight text using regex patterns on any webpage

21.11.2025 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

Yazar
JimDop
Değerlendirmeler
0 0 0
Versiyon
1.0
Oluşturulma
21.11.2025
Güncellenme
21.11.2025
Boyut
10,8 KB
Lisans
MIT
Geçerli
Tüm siteler

I've created a robust Violentmonkey/Tampermonkey userscript with these features:
Key Features:

Regex search with full regex pattern support
Yellow highlighting of all matches
Match counter showing total matches found
Case sensitive toggle option
Whole word search option
Minimizable panel (stays out of your way)
Auto-scrolls to first match
Works on dynamic sites like Reddit and NYTimes (MutationObserver tracks DOM changes)
Smart text node filtering (skips scripts, styles, and the panel itself)

How to use:

Install Violentmonkey extension
Create a new script and paste this code
Visit any website
Enter a regex pattern (e.g., \b[A-Z]{3,}\b for acronyms, \d{3}-\d{3}-\d{4} for phone numbers)
Click "Search & Highlight"

Example patterns to try:

\b\w+@\w+\.\w+\b - Email addresses
https?://[^\s]+ - URLs
\$\d+\.?\d* - Dollar amounts
\b[A-Z][a-z]+\b - Capitalized words

The script handles complex pages by using TreeWalker to efficiently find text nodes and a MutationObserver to re-apply highlights when the page changes dynamically.