uBlock/src
Raymond Hill b7ed3b45ed
Add ability to directly evaluate static network filtering engine
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3362

There used to be a way to test URL against the network filtering engine,
but this was removed in a distant past during refactoring.

The ability has been brought back through uBO's own developer tools,
accessible through the _More_ button in the _Support_ pane in the
dashboard.

To query the static network filtering engine, enter the following
in the text editor:

snfe?url-to-test [type] [url-of-context]

`snfe?` is a prompt indicating the intent to query the static network
filtering engine.

At a minimum there must be a URL to test.

Optionally the type of the resource to match, default to `xhr` if
none specified. Also optionally, the context from within which the
request is made. Example:

Enter:
snfe?https://www.google-analytics.com/analytics.js

Result:
url: https://www.google-analytics.com/analytics.js
blocked: ||google-analytics.com^

Enter:
snfe?https://www.google-analytics.com/analytics.js script

Result:
url: https://www.google-analytics.com/analytics.js
type: script
blocked: ||google-analytics.com^
modified: ||google-analytics.com/analytics.js$script,redirect-rule=google-analytics_analytics.js:5

Enter:
snfe?https://example.com/

Result:
url: https://example.com/
not blocked

Enter:
snfe?https://example.com/ ping

Result:
url: https://example.com/
type: ping
blocked: *$ping,3p
2024-09-02 19:32:56 -04:00
..
_locales Import translation work from https://crowdin.com/project/ublock 2024-08-19 12:02:00 -04:00
css Adjust element picker visuals 2024-04-22 06:08:49 -04:00
img Add a console pane to the logger 2024-04-10 11:27:40 -04:00
js Add ability to directly evaluate static network filtering engine 2024-09-02 19:32:56 -04:00
lib Redesign cache storage 2024-02-26 16:50:11 -05:00
web_accessible_resources Add noop resources for redirect purpose 2024-08-24 12:11:35 -04:00
1p-filters.html Add checkboxes to "My filters" pane 2024-03-11 11:39:31 -04:00
3p-filters.html Keep search input field visuals consistent 2024-03-13 10:57:56 -04:00
about.html Patch Unicode country flags with image-based flags 2023-05-20 21:35:52 -04:00
advanced-settings.html Fix cloud storage widget not showing (regression) 2023-04-10 10:03:51 -04:00
asset-viewer.html Convert remaining vAPI.setTimeout to vAPI.defer 2023-04-14 10:26:45 -04:00
background.html [mv3] Add ability to enable/disable filter lists 2022-09-13 17:44:24 -04:00
cloud-ui.html Work toward bringing dark theme closer to a stable release 2022-01-30 18:35:26 -05:00
code-viewer.html Convert remaining vAPI.setTimeout to vAPI.defer 2023-04-14 10:26:45 -04:00
dashboard.html Add checkboxes to "My filters" pane 2024-03-11 11:39:31 -04:00
devtools.html Benchmark buttons must be disabled by default 2024-03-02 08:58:49 -05:00
document-blocked.html Fix cloud storage widget not showing (regression) 2023-04-10 10:03:51 -04:00
dyna-rules.html Make syntax errors more visible 2024-03-19 11:39:07 -04:00
logger-ui.html Add a console pane to the logger 2024-04-10 11:27:40 -04:00
no-dashboard.html Code maintenance: replace uDom.js with dom.js 2022-11-12 09:51:22 -05:00
popup-fenix.html Prevent resizing of title bar in popup menu 2024-07-05 10:11:27 -04:00
settings.html Fix cloud storage widget not showing (regression) 2023-04-10 10:03:51 -04:00
support.html Isolate DOM inspector layers from page context 2023-12-03 16:21:32 -05:00
whitelist.html Add checkboxes to "My filters" pane 2024-03-11 11:39:31 -04:00