Skip to content

uBlockVanced

uBlockVanced v0.3.1

Enhanced fork of uBlock Origin (Manifest V2) with deep element inspection, procedural cosmetic filters, and Catppuccin Mocha dark theme.

MV2Version 0.3.1Catppuccin MochaGPLv3

2026-04-19 13_44_21-OpenCut and 5 more tabs - File Explorer2026-04-19 13_43_32-OpenCut and 5 more tabs - File Explorer2026-04-19 13_43_46-OpenCut and 5 more tabs - File Explorer

---

What's Different

uBlockVanced adds a DevTools panel called Element Probe that solves a specific problem: uBlock Origin's standard element picker can't select elements with obfuscated CSS classes, shadow DOM boundaries, or dynamic content like YouTube live chat banners.

Element Probe Features

  • Deep element inspection via chrome.devtools.inspectedWindow.eval() -- bypasses content script limitations
  • Procedural cosmetic filter generation:
    • :has-text() -- match elements by their text content (regex supported)
    • :upward(N) / :upward(selector) -- target ancestor elements from a known child
    • :matches-path() -- restrict filters to specific URL paths
    • :not(:has-text()) -- inverse text matching
  • YouTube-specific selectors for live chat banners, tickers, and custom elements with dynamic classes
  • Shadow DOM scanning and piercing selectors
  • iframe detection and analysis
  • Smart class classification -- distinguishes stable class names from obfuscated/dynamic ones (CSS-in-JS, styled-components, emotion, etc.)
  • Filter history with undo -- persisted in chrome.storage.local, revert applied filters
  • Proper filter persistence via uBlock's createUserFilter messaging channel
  • Visual element picker -- hover-to-highlight with inspect() integration to set $0
  • Right-click context menu -- "Inspect with Element Probe" on any page element
  • Live preview -- hover over generated selectors to highlight matching elements

Compatibility

  • CSP-compatible cosmetic mode -- on strict sites, set cspCompatibleMode true in Advanced Settings. Cosmetic styles are routed through constructable stylesheets when available, with the extension stylesheet API as a fallback, avoiding inline <style> injection.

Theme

Full Catppuccin Mocha dark theme applied across:

  • Element Probe DevTools panel
  • Element picker overlay (epicker)
  • Logger UI (all hardcoded colors replaced with theme-aware values)
  • DOM inspector
  • Filter list pages
  • Dynamic filtering dialog (allow/block/noop action colors)

Base

All standard uBlock Origin features remain intact -- ad blocking, filter lists, dynamic filtering, logger, cloud sync, etc.

Installation

  1. Clone: git clone https://github.com/SysAdminDoc/uBlockVanced.git
  2. Open chrome://extensions/ in Chrome/Edge
  3. Enable Developer mode
  4. Click Load unpacked and select the src/ directory
  5. Open DevTools (F12) on any page -- the Element Probe tab appears

Usage

Element Probe (DevTools Panel)

  1. Open DevTools (F12) on any page
  2. Navigate to the Element Probe tab
  3. Either:
    • Select an element in the Elements panel, then click Inspect Selected Element
    • Click Pick from Page to hover-and-click select directly
  4. Review generated CSS Selectors (standard) and Procedural Filters (:has-text, :upward, etc.)
  5. Click a selector/filter to populate the filter output
  6. Apply Filter persists it to uBlock's user filter list
  7. Use Filter History to undo/redo applied filters

Context Menu

Right-click any element and select Inspect with Element Probe to set it as the DevTools $0 reference, then switch to the Element Probe panel.

Building

make chromium # Build for Chrome/Edge
make firefox # Build for Firefox
make opera # Build for Opera

License

GPLv3

Based on uBlock Origin by Raymond Hill.

About

An efficient content blocker forged from uBlock Origin (MV2) with Catppuccin Mocha dark theme, premium UI, and a DevTools-powered Element Forge panel for deep CSS element inspection and hiding.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages