Block ads and trackers
What Oriel blocksPermalink to What Oriel blocks#
Oriel blocks ads and trackers out of the box. It uses two well-known filter lists, EasyList for ads and EasyPrivacy for trackers, and stops matching requests before they leave your machine. You don't have to install anything or turn anything on. Blocked scripts, images and frames simply never load, so pages are lighter and fewer companies hear about your visit. Blocking is part of the Linux browser; the macOS and Windows previews don't block requests.
Blocking works on network requests: scripts, images, stylesheets, fonts, media, background requests and embedded frames. It never blocks the page you asked for. Oriel doesn't apply the filter rules that say which parts of a page to hide, often called element hiding or cosmetic filtering. So you may still see an empty box where an ad would have been, or a "disable your ad blocker" banner a site draws itself.
How the lists arrivePermalink to How the lists arrive#
Oriel doesn't ship a copy of the lists. The first time you start it with a normal profile, it downloads EasyList and EasyPrivacy from easylist.to in the background and prepares them for the browser engine. The status bar shows adblock: downloading block lists… while that happens. Browsing works in the meantime, but nothing is blocked until the lists are ready, and preparing them the first time can take a few minutes.
After that, Oriel checks the lists about once a day, with up to an hour of random delay, and only downloads them again when they've changed. Restarting Oriel doesn't trigger a new download. If a check fails, Oriel keeps using the lists it already has and tries again later, waiting longer after each failure, up to a day. To check right away, run :adblock-update.
If you're offline on the very first launch, the status bar says adblock: unavailable, browsing still works, and Oriel fetches the lists once it can. Later, offline launches use the lists you already have, even if they're old.
List downloads use HTTPS with normal certificate checks and send no cookies or browsing history. They're the only reason Oriel contacts easylist.to. The prepared lists live in Oriel's cache directory, and Oriel keeps the current set and the one before it.
Read the status barPermalink to Read the status bar#
When blocking is working and the lists are current, the status bar says nothing about it at all. A short word appears only when there's something to know:
Status bar | Meaning |
|---|---|
| Oriel is fetching or preparing the lists. |
| A list hasn't been checked within its update interval. Blocking still uses the lists you have. |
| Blocking is off in your configuration, or off for this site. |
| No usable lists yet, or only some of them, so coverage is missing. |
For the details, run :adblock-status. It opens a report in a new tab showing whether blocking is on for the current site, each list's address and when Oriel last checked it, and the prepared rule set that's installed. Oriel doesn't count blocked requests: the browser engine doesn't report which requests it blocked, so a number would be a guess.
Turn blocking off for a sitePermalink to Turn blocking off for a site#
Some sites break when their scripts are blocked. To allow everything on the site you're looking at, run :adblock-toggle. Run it again to turn blocking back on. Oriel confirms the change in the status bar, for example adblock: off for exact host shop.example, and remembers it in your profile, so it lasts across restarts.
The setting covers exactly one host name, the one in the address bar. Turning blocking off for example.com doesn't change login.example.com or www.example.com; each has its own setting. HTTP and HTTPS, and every port, share the setting for a host.
Command | What it does |
|---|---|
| Turn blocking off for the current host, or back on. |
| Turn blocking off for HOST. Without HOST, the current host. |
| Turn blocking back on for HOST. Without HOST, the current host. |
| Open the report described above. |
| Check the lists for updates now. |
Oriel reloads a matching tab for you when it knows the page was an ordinary page load. If a matching tab came from a form submission, the status bar says reload matching pages manually, and you can press r on it when you're ready. Oriel never resubmits a form on its own.
In a private window, these commands change only that window. Oriel forgets them when you close it, and they never touch your saved profile.
adblock-toggle has no default key. To give it one, add a binding:
(config
add-keys: (list (bind 'nav "C-c a" 'adblock-toggle)))Each command can also be bound with its arguments, such as '(adblock-disable "news.example").
SettingsPermalink to Settings#
The content-blocking: setting takes a (content-blocking ...) value with four fields:
Field | Value | Default |
|---|---|---|
|
|
|
| How often to check the lists, in hours, from 1 to 168. |
|
| A list of host names where blocking is always off. | None |
| Up to 16 lists, each made with | EasyList and EasyPrivacy |
Here's a complete configuration that checks for updates every two days and always allows two sites:
(config
content-blocking: (content-blocking
update-hours: 48
disabled-sites: '("bank.example" "intranet.example")))Sites in disabled-sites: win over the commands. :adblock-enable refuses to turn one back on and tells you to edit your configuration instead.
To add a list of your own, give each list an ID and an HTTPS address. Because lists: replaces the defaults, include EasyList and EasyPrivacy too if you want to keep them:
(config
content-blocking: (content-blocking
lists: (list
(filter-list "easylist"
url: "https://easylist.to/easylist/easylist.txt")
(filter-list "easyprivacy"
url: "https://easylist.to/easylist/easyprivacy.txt")
(filter-list "my-list"
url: "https://lists.example/my-list.txt"))))IDs use 1 to 64 letters, digits, _ or -. Addresses must be absolute HTTPS URLs without a user name, password or # fragment. Oriel understands the common network rules in these lists. Rules it doesn't support, such as scripts injected into pages or redirects to stand-in resources, are counted and skipped, never half-applied.
To turn blocking off everywhere:
(config
content-blocking: (content-blocking enabled: #f))With blocking off, Oriel doesn't download the lists unless you run :adblock-update yourself. If your configuration file has an error, Oriel starts with its defaults, which keeps blocking on with the lists it already has, but it doesn't download new ones until you fix the file.
Private windowsPermalink to Private windows#
A private window blocks with the lists your normal profile has already prepared, and starts from the sites in your configuration's disabled-sites:. It never reads the sites you turned off with :adblock-toggle in your normal profile. It never fetches lists on its own either. If there are no prepared lists yet, the status bar says adblock: unavailable; :adblock-update then fetches them into the window's temporary storage, which is removed when you close it.
Check a rulePermalink to Check a rule#
Two more commands help when you want to know why something was or wasn't blocked. They open a report in a new tab.
:adblock-explain URL TYPE predicts what the installed rules would do with a request for URL from the current page. TYPE is one of script, image, stylesheet, font, media, xmlhttprequest or subdocument. The report names the matching rule and the list line it came from. It's a prediction from the rules, not a record of what the engine did, and it never fetches the URL.
:adblock-unsupported LIST shows the lines of a list, such as easylist, that Oriel skipped, grouped by reason. Add a reason to see only that group. Element-hiding rules show up here as cosmetic-deferred.