gorhill

Joined 13 years ago

Karma
4,967
Submissions
672
Member since
Dec 8
https://github.com/gorhill
View on Hacker News

Recent submissions

Comment · 21 days ago
Comment · 2 months ago
> content can load without the blocker being ready to

That issue does not exist for uBO Lite. I specifically wrote in the FAQ under "What are the upsides of an MV3-based content blocker?":

> For Chromium-based browsers specifically, MV3-based content blockers which are entirely declarative will properly filter at browser launch, which is not the case for MV2-based content blockers

uBO Lite is entirely declarative, so it filters properly at browser launch, and I literally give an actual example of this in the following section, search for "filters properly at browser launch".

Comment · 2 months ago
Cosmetic-based filters and scriptlet injection-based filters work by default, they are enforced in _Optimal_ and _complete_ filtering modes. The default filtering mode is _optimal_.
Comment · 2 months ago
Comment · 2 months ago
uBO Lite does support "element picker", it's called "Create a custom filter" in popup panel.
Comment · 2 months ago
> can't do "Block Elements"

In uBO Lite, it's called "Create a custom filter" in the popup panel.

Comment · 6 months ago
Best is to report the issue using the "Report an issue" in the popup panel while on Reddit site. There could be other issues causing this, for instance if you didn't grant uBOL the permission to inject scripts on the site. Depending on which browser/os the issue occurs, we should be able to narrow down potential causes.
Comment · 6 months ago
Reddit's sponsored posts are blocked by default in uBOL when using _optimal_ (default) or _complete_ mode.
Comment · 8 months ago
I never transferred the extension in the Chrome store. The Chrome store extension has always been the one from the repository I control, and I've had full control of it since when I created it back in June 2014.
Comment · 1 year ago
Comment · 1 year ago
When trying to diagnose performance or memory issues with a browser, always start with the installed and enabled extensions.
Comment · 1 year ago
> it claims to use zero CPU

There is no claim of "zero CPU". The claim is that the service worker wakes up only when necessary -- it is designed to be suspended by default from the ground up.

In Optimal and Complete modes, the content scripts will of course execute, without the service worker being unsuspended if no filtering occurs, but perform only the necessary work and bail out ASAP if not needed.

In Basic or "No filtering" modes, no content scripts are injected.

---

Edit: Sorry, I do say "uBOL itself does not consume CPU/memory resources while content blocking is ongoing". When I say "itself" I am referring to the service worker as seen in Chromium's Task Manager. The service worker isn't required for examples when navigating to `example.com` or here at `news.ycombinator.com`. All top content blockers I have looked at do require their service worker to execute, even for merely just switching between tabs. Some even use tricks to prevent their service worker to be suspended at all.

Comment · 1 year ago
Those webpages used to "test" blockers are frowned upon, see: https://x.com/gorhill/status/1583581072197312512

There are many reasons that sort of online tools are not able to reliably test a content blocker:

- Many content blockers are designed to fool pages to think no content blocker is installed

- Content blockers filter according to real, actual cases, not synthetic cases used in their tests

Comment · 1 year ago
Comment · 1 year ago
When you enable "Developer mode" in the "Extensions" page of your browser, you can open the developer tools for the extension by clicking the "service worker" link, and from there select the "Network" tab, you will be able all the network requests made by the extension from within its service worker.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton