uBO Lite Test Page
Test filtering capabilities according to selected filtering mode, basic, optimal, or complete. Regardless of how the page is navigated to — including at browser launch — results should not be different. Requirements:
- Stable version of uBO Lite above 2025.3.8.1350
- "uBO Lite Test Filters" enabled in the Filter lists pane in uBO Lite’s dashboard
Basic network filters (DNR)
- filtering mode in popup panel is no filtering:
- filtering mode in popup panel is basic, optimal, or complete:
Advanced network filters (DNR)
- filtering mode in popup panel is no filtering:
- filtering mode in popup panel is basic, optimal, or complete:
/anf1.$image,redirect=32x32.png,from=…
/anf2.html$frame,csp=script-src 'none'
Specific cosmetic filters
- filtering mode in popup panel is no filtering or basic:
- filtering mode in popup panel is optimal or complete:
###ccf #ccf2 .fail:not(.a4)
###ccf #ccf3 .fail:style(visibility: hidden)
###ccf #ccf4 .fail-pseudo::before
###ccf #ccf5 .fail-pseudo::before:style(visibility: hidden)
Procedural cosmetic filters
- filtering mode in popup panel is no filtering or basic:
- filtering mode in popup panel is optimal or complete:
##.fail:has(:is(.pass a > b))
##.fail:has-text(/NEEDLE/i)
##.fail:not(:has-text(haystack))
##.fail:matches-css(position: absolute)
##.fail:has(a:matches-css-before(opacity: 0))
##.fail:has(b:matches-css-after(opacity: 0))
##.fail > a > b:nth-ancestor(2)
##.fail:min-text-length(300)
##.pass > a:has(b) + .fail
##.pass > a:has(b) + .fail:has(b)
##.pass:watch-attr(class) > .fail:has(b.notok)
##b:upward(.fail):style(visibility: hidden !important)
Scriptlet filters
- filtering mode in popup panel is no filtering or basic:
- filtering mode in popup panel is optimal or complete:
##+js(set, sf1Sentinel, undefined)
##+js(nostif, sf2Sentinel)
>>##+js(set, sf3Sentinel, undefined)
##+js(jsonl-edit-xhr-response, b)
##+js(jsonl-edit-fetch-response, b)
##+js(trusted-prevent-dom-bypass, Node.prototype.appendChild, Element.prototype.getElementsByTagName)
Lowly generic cosmetic filters
- filtering mode in popup panel is no filtering, basic, or optimal:
- filtering mode in popup panel is complete:
Firefox MV2 uBO-only tests
- These tests are only valid for Firefox MV2 uBO as they require capabilities not available in Chromium-based browsers or in MV3 framework
/sample.json|$xhr,replace=json:..price=0,to=…
…/test-filters.html##^#ffubo2 > script