uBlock

应用程序

gorhill/uBlock

高效的 Chromium 和 Firefox 内容拦截器。

项目简介

uBlock Origin 是一款快速、内存高效的广谱内容拦截器,适用于 Chromium 和 Firefox。它使用多个过滤列表拦截广告、跟踪器、挖矿脚本、弹窗、反拦截脚本和恶意网站。其目标是帮助用户抵御隐私侵犯。

README 预览

[![Badge Commits]][Commit Rate]
[![Badge Issues]][Issues]
[![Badge Localization]][Crowdin]
[![Badge License]][License]
[![Badge NPM]][NPM]
[![Badge Mozilla]][Mozilla]
[![Badge Chrome]][Chrome]
[![Badge Edge]][Edge]

***

uBlock Origin (uBO)

| Browser   | Install from ... | Status |
| :-------: | ---------------- | ------ |
|  | Firefox Add-ons | [uBO works best on Firefox](https://github.com/gorhill/uBlock/wiki/uBlock-Origin-works-best-on-Firefox) |
|  | Edge Add-ons |
|  | Opera Add-ons |
|  | Chrome Web Store | About Google Chrome's "This extension may soon no longer be supported"End of support on Chrome 139 |
|  | Thunderbird Add-ons | [No longer updated and stuck at 1.49.2.](https://github.com/uBlockOrigin/uBlock-issues/issues/2928) Later versions require "GitHub - Releases". |
|  | GitHub - Releases | Stable and development versions on Firefox, Chromium MV2, and Thunderbird. Must be placed manually into web browsers; the Chromium and Thunderbird versions usually won't auto-update.

***

uBlock Origin (uBO) is a CPU and memory-efficient [wide-spectrum content blocker][Blocking] for Chromium and Firefox. It blocks ads, trackers, coin miners, popups, annoying anti-blockers, malware sites, etc., by default using [EasyList][EasyList], [EasyPrivacy][EasyPrivacy], [Peter Lowe's Blocklist][Peter Lowe's Blocklist], [Online Malicious URL Blocklist][Malicious Blocklist], and uBO [filter lists][uBO Filters]. There are many other lists available to block even more. Hosts files are also supported. uBO uses the EasyList filter syntax and [extends][Extended Syntax] the syntax to work with custom rules and filters.

You may easily unselect any preselected filter lists if you think uBO blocks too much. For reference, Adblock Plus installs with only EasyList, ABP filters, and Acceptable Ads enabled by default.

It is important to note that using a blocker is **NOT** [theft]. Do not fall for this creepy idea. The _ultimate_ logical consequence of `blocking = theft` is the crimina

常见问题 (1)

故障排除
为什么 uBlock Origin 在 Firefox 的 about:addons 页面上被禁用?我该如何在那里屏蔽 Google Analytics?

uBlock Origin 默认将 about: 页面列入白名单,以避免破坏 Firefox 内部页面,且其白名单规则不支持仅针对 about:addons 的更具体例外。可借助 uMatrix 变通解决:打开 uMatrix 控制面板 → "My rules",然后添加:

matrix-off: about-scheme true
matrix-off: addons.about-scheme false
* google-analytics.com * block

提交规则并重新加载 about:addons。前两条规则使 uMatrix 在其他 about: 页面上保持禁用状态,同时专门在 about:addons 上启用;第三条规则拦截 Google Analytics 请求。从 uBlock Origin 的白名单中移除 about-scheme 也是可行的,但这会影响所有 Firefox 内部页面,并可能导致故障。

来源 Issue #2784