Scripts2026年5月27日·1 分钟阅读

uBlock Origin — Efficient Wide-Spectrum Content Blocker

A free, open-source content blocker for browsers that uses declarative and procedural filtering to remove ads, trackers, and malware domains with minimal CPU and memory footprint.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
uBlock Origin
直接安装命令
npx -y tokrepo@latest install 4c4b7d65-59a5-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

uBlock Origin is a free, open-source browser extension that blocks ads, trackers, and malware domains. It was created to be a CPU- and memory-efficient alternative to other ad blockers, using declarative filter lists and a procedural cosmetic filtering engine. It gives users full control over what content loads in their browser.

What uBlock Origin Does

  • Blocks network requests matching thousands of filter rules before content downloads
  • Applies cosmetic filters to hide page elements that slip through network blocking
  • Supports multiple community-maintained filter lists (EasyList, EasyPrivacy, Peter Lowe's, etc.)
  • Provides per-site toggles and a dynamic filtering firewall for advanced users
  • Includes a built-in logger to inspect every network request in real time

Architecture Overview

uBlock Origin parses filter lists into an optimized in-memory data structure using a static network filtering engine. Incoming HTTP requests are matched against these compiled rules before the browser fetches the resource. A separate cosmetic filtering engine injects CSS to hide leftover DOM elements. Dynamic filtering adds a firewall layer that lets users block entire domains or request types on a per-site basis. The extension runs entirely in the browser with no external server dependency.

Self-Hosting & Configuration

  • Install from the official browser extension store for Firefox, Chrome, Edge, or Opera
  • Default filter lists are enabled at install; add or remove lists under Dashboard > Filter lists
  • Import custom filter rules in the My filters tab using Adblock Plus or uBlock Origin syntax
  • Back up and restore settings with the Dashboard > Settings export/import feature
  • Advanced users can enable dynamic filtering in Settings to build per-domain firewall rules

Key Features

  • Minimal memory and CPU usage compared to other content blockers
  • Procedural cosmetic filters that target elements by structure, not just class or ID
  • Element picker mode for visually creating custom filters on any page
  • Built-in request logger for debugging and transparency
  • No monetization, acceptable-ads programs, or whitelisted advertisers

Comparison with Similar Tools

  • Adblock Plus — uses an acceptable-ads program by default; uBlock Origin blocks all ads without exceptions
  • Brave Browser — built-in blocking tied to one browser; uBlock Origin works across Firefox, Chrome, and Edge
  • Pi-hole — network-level DNS blocking for all devices; uBlock Origin adds cosmetic filtering and per-element control in the browser
  • Privacy Badger — focuses on tracker heuristics; uBlock Origin uses curated filter lists for broader coverage
  • AdGuard — offers system-wide filtering with a paid tier; uBlock Origin is fully free and browser-based

FAQ

Q: Does uBlock Origin sell data or accept payments from advertisers? A: No. It has no monetization model and does not participate in any acceptable-ads program.

Q: Why is uBlock Origin different from uBlock? A: uBlock Origin is the original project maintained by Raymond Hill (gorhill). The name "uBlock" was forked by a different party; they are separate projects.

Q: Does it work with Manifest V3 on Chrome? A: uBlock Origin Lite is a MV3-compatible version with reduced capabilities. The full version remains fully supported on Firefox, which preserves the MV2 extension API.

Q: Will it break websites? A: Occasionally a filter rule may interfere with site functionality. Clicking the extension icon and disabling blocking for that site resolves it instantly.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产