1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 02:42:33 +01:00
uBlock/src/js
Raymond Hill c7b54af0a2
[mv3] Add minimal ability to diagnose ruleset issue
A new icon has been added to the popup panel, to open a popup
window with a terse list of DNR events for the current tab, in
reverse chronological order (most recent DNR event appears at
the top).

The new ability is available only when the extension is sideloaded,
as per `declarativeNetRequestFeedback` documentation. Ref:
https://developer.chrome.com/docs/extensions/reference/api/declarativeNetRequest#event-onRuleMatchedDebug

Purposefully minimal, so as to have something rather than nothing
when having to diagnose filtering issue with the DNR API. Example:
https://github.com/uBlockOrigin/uBOL-home/issues/156

The content of the popup window does not dynamically update, force
a refresh (F5) to get the most recent DNR events. This might be
improved in the future.

The DNR event buffer is not persisted, so the buffer is empty when
service worker is restarted. This might be improved in the future
by using session storage API.

There is no output filtering ability in this first draft. This
might be improved in the future.

DNR rules are reported. The filter from which a DNR rule
originates is not reported. Given that the rulesets are optimized
after conversion from original filter lists to reduce the DNR rule
count, this is unlikely to ever be possible.
2024-07-29 14:54:46 -04:00
..
codemirror Fix various quirks with "My filters" trust-related checkbox 2024-03-19 10:59:15 -04:00
scriptlets Adjust element picker visuals 2024-04-22 06:08:49 -04:00
wasm Change official description in source code top comment 2023-12-04 12:10:34 -05:00
1p-filters.js Fix various quirks with "My filters" trust-related checkbox 2024-03-19 10:59:15 -04:00
3p-filters.js Fix regression breaking import of file:// lists 2024-04-08 20:48:58 -04:00
about.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
advanced-settings.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
asset-viewer.js Support maximizing editor to viewport size 2024-03-12 11:25:50 -04:00
assets.js Make asset updater compatible with non-persistent background page 2024-03-01 19:52:55 -05:00
background.js Properly manage cache storage regarding managed user filters 2024-03-23 13:28:18 -04:00
base64-custom.js Redesign cache storage 2024-02-26 16:50:11 -05:00
benchmarks.js Add more benchmark tools to devtool page 2024-03-01 17:26:21 -05:00
biditrie.js Add checksum validation when loading trie buffers in selfie 2024-05-09 21:29:24 -04:00
broadcast.js Fix bad eslint rule + minor code review 2024-03-22 14:46:57 -04:00
cachestorage.js Add more console logging for cache storage code 2024-05-02 20:15:46 -04:00
click2load.js Output scriptlet logging information to the logger 2024-01-25 12:20:38 -05:00
cloud-ui.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
code-viewer.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
commands.js Prevent access to picker when "My filters" is not enabled 2024-01-16 08:31:46 -05:00
console.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
contentscript-extra.js Fix :matches-prop() operator when no value provided 2024-06-20 09:21:43 -04:00
contentscript.js Trim end of class tokens in generic cosmetic filtering's surveyor 2024-05-28 18:42:06 -04:00
contextmenu.js Prevent access to picker when "My filters" is not enabled 2024-01-16 08:31:46 -05:00
cosmetic-filtering.js Classify generic cosmetic filters with comma as highly generic 2024-06-01 10:46:18 -04:00
dashboard-common.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
dashboard.js Add checkboxes to "My filters" pane 2024-03-11 11:39:31 -04:00
devtools.js Fix disabled state of new benchmark buttons 2024-03-03 13:46:29 -05:00
diff-updater.js Add to error message 2023-12-26 11:32:08 -05:00
document-blocked.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
dom-inspector.js [firefox] Fix DOM inspector being broken in private window 2023-12-06 21:16:48 -05:00
dom.js [mv3] Add minimal ability to diagnose ruleset issue 2024-07-29 14:54:46 -04:00
dyna-rules.js Add checkboxes to "My filters" pane 2024-03-11 11:39:31 -04:00
dynamic-net-filtering.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
epicker-ui.js Fix distance calculation in picker 2024-07-05 10:20:33 -04:00
fa-icons.js Add a console pane to the logger 2024-04-10 11:27:40 -04:00
filtering-context.js Discard repeating adjacent entries in the logger 2024-01-26 09:24:10 -05:00
filtering-engines.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
hnswitches.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
hntrie.js Add checksum validation when loading trie buffers in selfie 2024-05-09 21:29:24 -04:00
html-filtering.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
httpheader-filtering.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
i18n.js Fixed Belgian and Nepali flags for Windows Chromium users (#3914) 2024-03-17 10:42:20 -04:00
logger-ui-inspector.js Add a console pane to the logger 2024-04-10 11:27:40 -04:00
logger-ui.js Make logger console filter expression case-insensitive 2024-05-14 11:58:53 -04:00
logger.js Discard repeating adjacent entries in the logger 2024-01-26 09:24:10 -05:00
lz4.js Remove "Purge all caches" button from "Filter lists" pane 2023-12-13 21:01:51 -05:00
messaging.js Rename scuo- to s14e- 2024-03-11 15:40:50 -04:00
mrucache.js Split scriptlet filtering engine into lo- and hi-level classes 2023-12-21 10:48:01 -05:00
pagestore.js Do not block large media resources when loaded as top-level document 2024-03-26 12:44:08 -04:00
popup-fenix.js Fix popup panel when embedded in logger 2024-03-17 09:36:39 -04:00
redirect-engine.js Various fine tuning code of recent commits 2024-02-28 13:32:24 -05:00
redirect-resources.js Remove obsolete web accessible resources 2023-12-08 12:06:34 -05:00
reverselookup-worker.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
reverselookup.js Redesign cache storage 2024-02-26 16:50:11 -05:00
s14e-serializer.js Fix bad serialization of Date objects 2024-06-28 13:40:19 -04:00
scriptlet-filtering-core.js Redesign cache storage 2024-02-26 16:50:11 -05:00
scriptlet-filtering.js Minor code review 2024-04-09 20:05:53 -04:00
settings.js Add checkboxes to "My filters" pane 2024-03-11 11:39:31 -04:00
start.js Ensure reading last data written 2024-04-13 16:03:17 -04:00
static-dnr-filtering.js [mv3] Fix conversion of :xpath procedural filters 2024-01-22 10:57:48 -05:00
static-ext-filtering-db.js Redesign cache storage 2024-02-26 16:50:11 -05:00
static-ext-filtering.js Redesign cache storage 2024-02-26 16:50:11 -05:00
static-filtering-io.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
static-filtering-parser.js Add :matches-prop() pseudo CSS operator 2024-06-19 19:06:53 -04:00
static-net-filtering.js Rename module-scoped classes for better distinction in profiling data 2024-03-02 09:41:12 -05:00
storage.js Fix race condition when loading redirect/scriptlet resources 2024-06-26 11:00:50 -04:00
support.js Remove "Purge all caches" button from "Filter lists" pane 2023-12-13 21:01:51 -05:00
tab.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
tasks.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
text-encode.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
text-utils.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
theme.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
traffic.js Fix CSP/PP header injection in non-document resources 2024-07-10 11:41:55 -04:00
ublock.js Unregister all scriptlets when disabling uBO on a specific site 2024-01-19 11:00:07 -05:00
uri-utils.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
url-net-filtering.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
utils.js Split scriptlet filtering engine into lo- and hi-level classes 2023-12-21 10:48:01 -05:00
whitelist.js Add checkboxes to "My filters" pane 2024-03-11 11:39:31 -04:00