1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 18:32:45 +01:00
Go to file
2014-06-29 18:40:55 +02:00
_locales Update messages.json 2014-06-29 18:40:55 +02:00
assets forgot to recompute checksum after adding comment line 2014-06-28 11:27:31 -04:00
css this addresses #7, #11 2014-06-24 21:46:37 -04:00
dist Update DESCRIPTION-de 2014-06-29 18:36:43 +02:00
doc/img remove irrelevant, cluttering entry 2014-06-28 12:45:45 -04:00
img this addresses #7, #11 2014-06-24 21:46:37 -04:00
js this fixes #28 2014-06-29 12:38:18 -04:00
lib no longer needed 2014-06-28 11:26:09 -04:00
1p-filters.html first commit 2014-06-23 18:42:43 -04:00
3p-filters.html fixed "raced condition" between two onLoad listener 2014-06-23 21:09:31 -04:00
about.html first commit 2014-06-23 18:42:43 -04:00
background.html this addresses partially #23 2014-06-28 11:25:37 -04:00
dashboard.html this fixes #16: don't mix with window.addEventListener('load') 2014-06-26 09:46:38 -04:00
LICENSE.txt first commit 2014-06-23 18:42:43 -04:00
manifest.json new version 2014-06-27 17:16:59 -04:00
popup.html ready for translation 2014-06-24 20:04:34 -04:00
README.md minor edit 2014-06-29 00:46:49 -04:00
settings.html this fixes #7 2014-06-27 17:06:42 -04:00

µBlock for Chromium

See Change log for latest changes.

An efficient blocker for Chromium-based browsers. Fast and lean.

Chromium on Linux 64-bit

Opera 22 on Windows 7 32-bit

The above screenshots were taken after visiting many reference benchmark links plus a bit of random browsing. All blockers were active at the same time, thus they had to deal with exactly the same workload. Before the screenshots were taken, I left the browser idle for many minutes so as to let the browser's garbage collector kicks in. Also, after a while idling, it's good to open the dev console for each extension and force a garbage collection cycle by clicking a couple of times the trashcan icon in the Timeline tab (this caused a ~15MB drop for µBlock and Adguard in Opera) as garbage collectors sometimes work in a very lazy way, so I did this for each extension.

More: µBlock vs. ABP: efficiency compared

Dispelling a few myths flying around

"µBlock does not support element hiding".

Yes it does. Try entering twitter.com##body in the "Your filters" text area and visit twitter.com: the page will be blank.

What it doesn't support yet, is the UI counterpart to "element hiding", i.e. being able to click on an element to extract filters out of it.

"The memory usage isn't actually ABP's fault, EasyList is like 40,000+ lines of rules that all have to be parsed by ABP".

µBlock also parse EasyList, EasyPrivacy, Malware domains lists, and Peter Lowes's Ad server list out of the box and yet uses less than half the memory of ABP.

"µBlock has all the features ABP has!"

No it doesn't. There are things ABP can do which µBlock can't at this time. I will consider all feature requests, but I will implement only those which do not jeopardize µBlock's defining traits: lean, efficient and minimalist.

Filters with the $popup option are ignored. At time of writing, I see 558 such filters in EasyList. Chromium comes with a built-in popup blocker, which can be enabled in the settings.

Filters with the $elemhide option are ignored. At time of writing, I see 50 such filters in EasyList. The purpose of these filters is to disable cosmetic filters on specific site.

Regarding reviews in various web store

Some articles about the origin of the source code behind µBlock

Installation

From the Chrome store, or manually.

To benefit from the higher efficiency, it is of course not advised to use an inefficient blocker at the same time. µBlock will do as well or better than the popular blockers out there.

Documentation

I think it is pretty obvious, except for this I suppose:

Popup

The big power button is to disable/enable µBlock for the specific hostname which can be extracted from the URL address of the current page. (It applies to the current web site only, it is not a global power button.) The state of the power switch for a specific site will be remembered.

Benchmarks

I ran my reference benchmark to compare against other popular blockers.

Results -- figures are 3rd party / all:

µBlock 0.1.0.4

  • Domains: 66 / 67
  • Hosts: 117 / 171
  • Scripts: 239 / 321
  • Outbound cookies: 8 / 42
  • Net requests: 1,035 / 1,877

Adblock Plus 1.8.3

  • Domains: 72 / 73
  • Hosts: 124 / 177
  • Scripts: 243 / 328
  • Outbound cookies: 8 / 44
  • Net requests: 1,041 / 1,913

Ghostery 5.3.0

  • Domains: 83 / 84
  • Hosts: 140 / 211
  • Scripts: 239 / 343
  • Outbound cookies: 17 / 57
  • Net requests: 1,046 / 1,930

Adguard 1.0.2.9

  • Domains: 89 / 90
  • Hosts: 145 / 217
  • Scripts: 262 / 349
  • Outbound cookies: 18 / 68
  • Net requests: 1,064 / 1,904

Disconnect 5.18.14

  • Domains: 95 / 96
  • Hosts: 163 / 239
  • Scripts: 283 / 381
  • Outbound cookies: 18 / 74
  • Net requests: 1,087 / 1,989

No blocker

  • Domains: 380 / 381
  • Hosts: 566 / 644
  • Scripts: 490 / 592
  • Outbound cookies: 245 / 315
  • Net requests: 1,950 / 2,871

The figures show the number of requests allowed, thus lower numbers are better. The point is to show how many 3rd-party servers are hit on average after running the reference benchmark (three repeats in the current instance).

The less hits on 3rd-party servers, the better. All blockers were configured in such a way as to compare apples-vs-apples:

  • µBlock: out-of-the-box settings -- no change.
  • Adblock Plus: "EasyPrivacy", "Malware Domains" checked. "Acceptable ads" unchecked.
  • Ghostery: "Advertising", "Analytics", "Beacons", "Privacy" checked. "Widgets" not checked. "GhostRank" unchecked.
  • Adguard: "Spyware and tracking", "Phishing and malware protection" checked. "Social media" not checked. "Acceptable ads" unchecked.
  • Disconnect: out-of-the-box settings -- no change.

About

µBlock is born out of HTTP Switchboard. All the niceties of HTTPSB have been removed, and what is left is a straightforward blocker which support EasyList and the likes, and also support host files. Cosmetic filters ("element hiding") are supported.

There is nothing more to it. But it does what popular blockers out there do, at a fraction of CPU and memory usage for the same blocking power.

Free. Open source. No donations sought. For users by users.

Without the preset lists of filters, this extension is nothing. So if ever you really do want to contribute something, think about the people working hard to maintain the filter lists you are using, which were made available to use by all for free.

License

GPLv3.