Advanced settings·续2


requestJournalProcessPeriod

Default: 1000 milliseconds.

uBO 1.16.21b2 and above.

Controls the delay before uBO internally processes its network request journal queue. The network request journal queue exists for the purpose of fixing issue 2053.

As a benign side effect to the fix, there is a delay in displaying the number of blocked requests on the extension icon (see #155).

A lower delay than the default one could bring back the issue it's meant to fix.


requestStatsDisabled

Default: false

uBO 1.56.1b8 and above.

Controls if the "Blocked since install" count is saved. When set to true, the "Blocked since install" count will reflect the number of blocked requests since uBO launched, and as such is reset when the browser is closed. This feature was introduced to fix issue 3100.


selfieAfter

Default: 2 minutes.

uBO 1.18.6 and above. Used to be 3 minutes until 1.39.3b0, and 11 minutes until 1.20.0.

Number of minutes after which selfie (optimized, internal representation of filters) is created.


strictBlockingBypassDuration

Default: 120 seconds.

uBO 1.17.3b4 and above.

Controls duration of the Strict blocking "Temporarily" bypass.


trustedListPrefixes

Default: ublock- in stable release, ublock- user- in development version.

uBO 1.52.3rc2 and above

Space-separated list of tokens specifying which lists are considered trustworthy.

Examples of possible values:

  • ublock-: trust only uBO lists, exclude everything else including content of My filters (default value)
  • ublock- user-: trust uBO lists and content of My filters
  • -: trust no list, essentially disabling all filters requiring trust (admins or people who don't trust us may want to use this)

One can also decide to trust lists maintained elsewhere. For example, for stock AdGuard lists add adguard-. To trust stock EasyList lists, add easylist-.

To trust a specific regional stock list, look-up its token in assets.json and add to trustedListPrefixes.

The matching is made with String.startsWith(), hence why ublock- matches all uBO's own filter lists.

This also allows to trust imported lists, for example add https://filters.adtidy.org/extension/ublock/filters/ to trust all non-stock AdGuard lists.

Add the complete URL of a given imported list to trust only that one list.

URLs not starting with https:// or file:/// will be rejected, i.e. http://example.org/ will be ignored.

Invalid URLs are rejected.


uiPopupConfig

Default: unset, was undocumented before 1.39.2.

Introduced in 1.27.0.

Override uBO popup interface configuration.

The value can be one or more space-separated tokens:

  • +captions/-captions: enable/disable captions
  • +no-popups/-no-popups: enable/disable no-popups switch
  • +logger/-logger: new in 1.39.1b1, enable/disable the logger button

uiStyles

Default: unset.

uBO 1.28.0 and above.

Allow bypassing uBO's default CSS styles in case they are causing issues to specific users. It is the responsibility of the user to ensure the value of uiStyles contains valid CSS property declarations. uBO will assign the value to document.body.style.cssText.

For example, in the case of the issue #1044, one could set uiStyles to font-family: sans-serif to force uBO to the system font for its user interface. Another example is issue #1254 wherein uBO v1.30.0 will be possible to adjust width of popup panels.


updateAssetBypassBrowserCache

Default: false

With 1.22.0 and above.

If set to true, uBO will ensure the browser cache is bypassed when manually<sup>1.27.0</sup> fetching a remote resource more often than every hour.

This is for the convenience of filter list maintainers who may want to test the latest version of their lists when fetched from their remote location.


userResourcesLocation

Default: unset.

One or more space-separated URLs which content will be parsed as token-identified resources to be used for redirect or scriptlet-injection (+js(...)) purpose.

Screenshot from 2023-04-08 13-25-44

uBO expects valid content such as can be seen in legacy version of scriptlets.js, anything else will lead to undefined results.

Any duplicate as per token will result in the previous resource being replaced by the latter one. The resource files are loaded in order of URL appearance, and uBO stock resource file is always loaded first.

Additional resources will be updated at the same time the built-in resource file is updated. Purging the cache of 'uBlock filters' will also purge the cache of the built-in resource file -- and hence force a reload of user-specified resources if any.

The setting was introduced in 1.12.0. Support for multiple URLs was introduced in 1.19.0.



Removed

<details><summary>Removed settings:</summary>

~~cnameUncloak~~

Removed in 1.34.0, deprecated in favor of "Uncloak canonical names" preference in Dashboard/Settings pane.

Introduced in 1.25.0.

Firefox only.

Whether to enable CNAME-uncloaking feature.


~~ignoreRedirectFilters~~

Removed in 1.35. Can be disabled by filter exception.


~~ignoreScriptInjectFilters~~

Removed in 1.35. Can be disabled by filter exception.


~~suspendTabsUntilReady~~

<span name="suspendtabsuntilready-experimental"></span>

Removed in favor of "Suspend network activity until all filter lists are loaded" checkbox in Dashboard -> Filter lists in version 1.41.0.

Default: unset.

Possible values:

  • unset - leave it to the platform to pick the optimal behavior (suspend network requests in Firefox, reload active tabs in Chrome)
  • no - do not suspend tab loading at launch time
  • yes - suspend tab loading at launch time

If enabled, uBO will attempt to suspend (Firefox) or block (Chromium) all network requests when the browser launches until all the filter lists and rules are loaded and ready.

If disabled, or in environments not supporting suspendable network request listeners (Chromium), active tabs for which there were network requests blocked during the setup phase, will be then reloaded.

Disclaimer: In Chromium-based browsers, even with this setting enabled, it's impossible for uBO to guarantee with 100% certainty that everything will be properly blocked when the browser is launched. This is a by-design browser issue -- do not open an issue on uBO issue tracker about this.

Related browser issues: - Chromium: <https://bugs.chromium.org/p/chromium/issues/detail?id=523634> - Firefox: <https://bugzilla.mozilla.org/show_bug.cgi?id=1378459>, fixed by <https://bugzilla.mozilla.org/show_bug.cgi?id=1447551>.

History: - 1.40.4 released for Chrome with temporary fix allowing to disable tab reloading by setting suspendTabsUntilReady to no and with yes case actually blocking connections. - Moved to Dashboard in 1.40.3b1 development builds. - Broken in Chromium between 1.27.0 and 1.40.3b0 - suspending cannot be enabled. - Do not block connections on startup, but reload active tabs when uBO is ready in Chromium as the default behavior in 1.39.3rc0. - After 1.18.6, configurable again in Firefox (can be disabled). In Firefox this feature is always active by default from now on thanks to "persistent startup listeners". - Before 1.18.6, default to false. - Between uBO 1.18.0 and 1.18.6, Chromium only.


~~uiFlavor~~

Removed in favor Fenix Layout.

Default: unset.

uBO 1.25.0 to 1.42.4.

Possible values:

  • fenix - to forcefully enable new, mobile-friendly, Popup UI layout.
  • classic - to revert back to old Popup UI (it was - up to 1.27.0).
  • unset - uBO will use whatever UI flavor is optimal for the current platform.

Mobile Popup UI layout


~~uiTheme~~

Removed in favor of a [[regular setting|Dashboard:-Settings#theme]] in 1.40.9b8.

Default: unset.

uBO 1.30.1b3 to 1.40.9b7.

For development purposes only! DO NOT create issues about this feature!
Locked to dev build only in 1.31.3b5.

Allows to manually override dark mode theme status.

Possible values:

  • unset: depending on uBO version - force light theme or uBO will pick the theme according to the browser's prefers-color-scheme
  • light: force light theme
  • dark: force dark theme

</details>