Raymond Hill
a0de43aba9
Import translation work from https://crowdin.com/project/ublock
2024-07-29 16:05:15 -04:00
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
Raymond Hill
c90f4933df
Fix CSP/PP header injection in non-document resources
...
Related feedback:
https://github.com/uBlockOrigin/uBlock-issues/issues/229#issuecomment-2220354261
https://old.reddit.com/r/uBlockOrigin/comments/1dz6du7/
Regression from:
https://github.com/gorhill/uBlock/commit/7c3e060c01
2024-07-10 11:41:55 -04:00
Raymond Hill
b98ef8141a
Fix CSP injection in non-document resources
...
Related feedback:
https://github.com/uBlockOrigin/uBlock-issues/issues/229#issuecomment-2220354261
https://old.reddit.com/r/uBlockOrigin/comments/1dz6du7/
Regression from:
https://github.com/gorhill/uBlock/commit/7c3e060c01
2024-07-10 10:09:59 -04:00
Raymond Hill
2bdbac1b84
Import translation work from https://crowdin.com/project/ublock
2024-07-09 13:16:17 -04:00
Raymond Hill
9569969b55
Fix distance calculation in picker
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3279
2024-07-05 10:20:33 -04:00
Raymond Hill
8c5918dec7
Prevent resizing of title bar in popup menu
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3284
2024-07-05 10:11:27 -04:00
Raymond Hill
c154aaa69c
Fix bad serialization of Date objects
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3283
2024-06-28 13:40:19 -04:00
Raymond Hill
896737d098
Fix race condition when loading redirect/scriptlet resources
...
Related feedback:
https://github.com/uBlockOrigin/uAssets/issues/23806#issuecomment-2190491767
2024-06-26 11:00:50 -04:00
Raymond Hill
47b985a056
Fix :matches-prop()
operator when no value provided
2024-06-20 09:21:43 -04:00
Raymond Hill
aca7674bac
Add :matches-prop()
pseudo CSS operator
...
`subject:matches-prop(arg)`
Description: Allows to select an element by a property name (or chain of
properties), and optionally the property value.
Chainable: Yes.
`subject`: Can be a plain CSS selector, or a procedural cosmetic filter.
`arg`: A declaration in the form `chain=value`, where `chain` is a dot-
separated string for the target property, and `value` is the optional
property value to match. `value` can be literal text or literal regular
expression. When no `value` is declared, the operator only tests for
the presence of the target property
Example:
example.org##div:matches-prop(imanad)
example.org##img:matches-prop(naturalWidth=160)
2024-06-19 19:06:53 -04:00
Raymond Hill
91ee5bdeae
Improve prevent-addEventListener
scriptlet
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3061#issuecomment-2159662039
2024-06-11 07:44:43 -04:00
Raymond Hill
d5208ee5dd
Add isodate
as available placeholder for auto-comment
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3265
2024-06-07 08:52:30 -04:00
Raymond Hill
8f81833efc
Classify generic cosmetic filters with comma as highly generic
...
Related discussion:
https://old.reddit.com/r/uBlockOrigin/comments/1d3ezoy/
2024-06-01 10:46:18 -04:00
Raymond Hill
82a3992896
Raise max buffer size for response body filtering
...
Related discussion:
https://github.com/uBlockOrigin/uBlock-discussions/discussions/891
2024-06-01 10:42:14 -04:00
Raymond Hill
8ea1bac80b
Trim end of class tokens in generic cosmetic filtering's surveyor
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3257
2024-05-28 18:42:06 -04:00
Raymond Hill
3e7eca364b
Make logger console filter expression case-insensitive
2024-05-14 11:58:53 -04:00
Raymond Hill
e738eaa447
Import translation work from https://crowdin.com/project/ublock
2024-05-12 15:51:46 -04:00
Raymond Hill
0e6d607484
Add checksum validation when loading trie buffers in selfie
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3217#issuecomment-2103048654
2024-05-09 21:29:24 -04:00
Raymond Hill
c098eb8625
Fix potential corruption when reading serialized data
...
Corrpution would occur when reading back serialized data which
contained multiple references to same instance of an object.
The issue could manifest when reading cache storage-related
data from the browser storage API, since the serializer is not
used when reading from indexedDB. Private/incognito mode
fall back on using browser storage API as cache storage.
Off the top of my head, I think the following conditions all
together could result in high likelihood of malfunction caused
by improperly deserializing data at launch time:
- Load from a selfie
- Selfie created after uBO ran for a while
- Selfie loaded from browser storage API (not the case by
default)
Possibly related to reports of uBO malfunctioning:
https://github.com/uBlockOrigin/uBlock-issues/issues/3217#event-12686416838
2024-05-02 20:21:47 -04:00
Raymond Hill
e891465775
Add more console logging for cache storage code
2024-05-02 20:15:46 -04:00
Raymond Hill
4c530b732f
Adjust element picker visuals
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3220
2024-04-22 06:08:49 -04:00
Raymond Hill
6152f5269e
Improve dashboard layout at high zoom factor
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3211
2024-04-16 11:21:06 -04:00
Raymond Hill
539938969d
Ensure reading last data written
...
Related discussion:
https://github.com/uBlockOrigin/uBlock-discussions/discussions/888
2024-04-13 16:03:17 -04:00
Raymond Hill
6e61a13e40
Open details pane only when clicking non-interactive elements
...
Related feedback:
https://github.com/uBlockOrigin/uBlock-issues/discussions/3202
2024-04-11 11:12:37 -04:00
Raymond Hill
3b4f02db21
Add a console pane to the logger
...
The console pane will report logging information reported by
scriptlets.
Related feedback:
https://github.com/uBlockOrigin/uBlock-issues/discussions/3096#discussioncomment-8748932
Plus other changes.
2024-04-10 11:27:40 -04:00
Raymond Hill
c0b56cffab
Improve suggested candidate filters in element picker
...
Additionally, fix eslint warnings.
2024-04-10 10:28:11 -04:00
Raymond Hill
581c2824d0
Minor code review
2024-04-09 20:05:53 -04:00
Raymond Hill
a5f6c35bb0
Fix bad date computation in auto-comment feature
...
Related feedback:
https://old.reddit.com/r/uBlockOrigin/comments/1bxz6oi/
2024-04-09 12:15:03 -04:00
Raymond Hill
c223a8cd39
Fix regression breaking import of file://
lists
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3199
2024-04-08 20:48:58 -04:00
Raymond Hill
e7951c2114
Import translation work from https://crowdin.com/project/ublock
2024-04-08 08:23:48 -04:00
Raymond Hill
defd68ef7d
Fix stray lists in redesigned cache storage
...
Related issue:
https://old.reddit.com/r/uBlockOrigin/comments/1bxzwf9/
These stray filter lists prevents uBO from properly updating
those filter lists.
2024-04-07 18:21:37 -04:00
Raymond Hill
4533f0e37e
Fix eslint warnings
2024-04-03 10:22:57 -04:00
Raymond Hill
7ca3855395
Import translation work from https://crowdin.com/project/ublock
2024-04-01 08:33:56 -04:00
Raymond Hill
08aa3ebe10
Fix eslint warnings
2024-03-31 13:35:11 -04:00
Raymond Hill
08b8b875ca
Import translation work from https://crowdin.com/project/ublock
2024-03-29 09:26:56 -04:00
Raymond Hill
d3fe073149
Import translation work from https://crowdin.com/project/ublock
2024-03-28 08:21:46 -04:00
Raymond Hill
3919a16bb8
Do not block large media resources when loaded as top-level document
...
Related issues:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1201
- https://github.com/uBlockOrigin/uBlock-issues/issues/3184
Top-level media resources are not meant to be blocked, see:
https://github.com/gorhill/uBlock/issues/2813#issuecomment-317177212
2024-03-26 12:44:08 -04:00
Raymond Hill
90ab1a76ab
Properly manage cache storage regarding managed user filters
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3177
2024-03-23 13:28:18 -04:00
Raymond Hill
47ae87724a
Import translation work from https://crowdin.com/project/ublock
2024-03-22 14:53:22 -04:00
Raymond Hill
5d60df4b1b
Fix bad eslint rule + minor code review
...
`webext.js` module needs to be explicitly imported.
Added time-based heuristic to decide when a webpage loses
communication with background process.
2024-03-22 14:46:57 -04:00
Raymond Hill
d368747235
Import translation work from https://crowdin.com/project/ublock
2024-03-22 09:49:42 -04:00
Raymond Hill
62965cd34f
Import translation work from https://crowdin.com/project/ublock
2024-03-21 13:55:53 -04:00
Raymond Hill
61e916901b
Add concept of "preferred" lists
...
Preferred lists will be visually listed above other lists.
2024-03-19 11:51:03 -04:00
Raymond Hill
7e48a03927
Make syntax errors more visible
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/992#issuecomment-2002586019
2024-03-19 11:39:07 -04:00
Raymond Hill
0cb6170584
Fix various quirks with "My filters" trust-related checkbox
...
Simplify code to force syntax highlighter and linter to reprocess
the content when toggling trust-related checkbox.
Fix issue with using `mousedown` on searchbar widgets, related
feedback:
https://github.com/uBlockOrigin/uBlock-issues/issues/3161#issuecomment-2002112770
Fix issues reported by eslint.
2024-03-19 10:59:15 -04:00
Imre Kristoffer Eilertsen
499c80bd8a
Fixed Belgian and Nepali flags for Windows Chromium users ( #3914 )
...
* Added flagcode matching for Belgium specifically
* Added a transparent Nepal flag
2024-03-17 10:42:20 -04:00
Raymond Hill
42dfdfea5d
Fix regression in visual of document-blocked page
...
Related commit:
46ea5519c1
2024-03-17 09:40:59 -04:00
Raymond Hill
94de4e266e
Fix popup panel when embedded in logger
...
Regression from commit:
https://github.com/gorhill/uBlock/commit/0d77ccded7
Related feedback:
https://github.com/uBlockOrigin/uBlock-issues/discussions/2419#discussioncomment-8759449
2024-03-17 09:36:39 -04:00
Raymond Hill
3f7374c1f1
Mind that tabs.sendMessage
can throw
2024-03-17 09:34:05 -04:00