Commit Graph

10662 Commits

Author SHA1 Message Date
Raymond Hill ddb767c284
Make Firefox dev build auto-update 2023-04-03 10:31:26 -04:00
Raymond Hill 204c5598a6
New revision for dev build 2023-04-03 10:25:21 -04:00
Raymond Hill 3e1030588e
Import translation work from https://crowdin.com/project/ublock 2023-04-03 10:24:47 -04:00
Raymond Hill 4aea9aa624
Better folding arrows in CodeMirror editor 2023-04-03 10:20:53 -04:00
Raymond Hill 6e8aeae283
Flush memory cache at key filtering profile changes
To reduce the need for hard reload after changes in filters,
rules.
2023-04-03 10:19:06 -04:00
Raymond Hill daee72b982
Make Firefox dev build auto-update 2023-04-02 13:31:28 -04:00
Raymond Hill 172b28d951
New revision for dev build 2023-04-02 13:26:32 -04:00
Raymond Hill 6531b86d29
Fix search highlight with dark theme
Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/discussions/2542#discussioncomment-5502579
2023-04-02 13:20:22 -04:00
Raymond Hill d25e9fd32a
Make Firefox dev build auto-update 2023-04-02 12:20:45 -04:00
Raymond Hill 16d92ad82e
New revision for dev build 2023-04-02 12:14:28 -04:00
Raymond Hill ae1afe0381
Import translation work from https://crowdin.com/project/ublock 2023-04-02 12:13:44 -04:00
Raymond Hill edbe96a401
Add logging ability to `acs` scriptlet, for the benefit of filter list
maintainers.

To enable logging, use the JSON approach to pass parameters to
`acs` scriptlet. Example:

    ..##+js(acs, { "target": "document.oncontextmenu", "log": true })

Whereas "target", "needle", and "context" correspond to their
respective positional argument. Using JSON form to pass parameters
allows to specify extra paramters to facilitate debugging of that
scriptlet:

- `"log": true` => output useful information at the dev console.
- `"debug": true` => break at key locations in the scriptlet.

The added logging/debugging capabilities work only in the dev build
of uBO or if the advanced setting `filterAuthorMode` is set to
`true`.
2023-04-02 12:01:58 -04:00
Raymond Hill 95bd52d01f
Fine tuning new linter code 2023-04-02 10:40:44 -04:00
Raymond Hill cda39709b1
Properly fail on bad network filter pattern
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1146
2023-04-02 10:05:42 -04:00
Raymond Hill 46e90b21e9
Code review of new linter code
As per CodeMirror's documentation, eachLine() iterator is
faster, so use this. Also no need to keep track or marked
lines, we can just find them on demand, this makes the code
simpler.
2023-04-02 09:19:32 -04:00
Raymond Hill dd8031a508
Fine tune CSS style for errors 2023-04-01 18:11:41 -04:00
Raymond Hill 13085eb08a
Make Firefox dev build auto-update 2023-04-01 17:01:08 -04:00
Raymond Hill 5533c3f435
New revision for dev build 2023-04-01 16:51:47 -04:00
Raymond Hill 0601350995
Import translation work from https://crowdin.com/project/ublock 2023-04-01 16:51:03 -04:00
Raymond Hill 9519666fcc
Import translation work from https://crowdin.com/project/ublock 2023-04-01 16:49:15 -04:00
Raymond Hill 50afd5ae38
Add infrastructure for static filter syntax linter
Sort of related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1134
2023-04-01 16:42:41 -04:00
Raymond Hill b10f15dd89
Ignore line, do not report as error
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2560#issuecomment-1492959500
2023-04-01 13:50:53 -04:00
Raymond Hill e2d837a2db
Fix presumed network filter not being a valid network filter
Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2560#issuecomment-1492959500
2023-04-01 09:05:36 -04:00
Raymond Hill 40e61cbf6a
Make Firefox dev build auto-update 2023-03-31 10:36:17 -04:00
Raymond Hill 1333e02de8
New revision for dev build 2023-03-31 10:27:52 -04:00
Raymond Hill 9f1c0d986b
Add support to restore from `json` file
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1956
2023-03-31 09:58:50 -04:00
Raymond Hill 0d26064a26
Make `object` equivalent of `frame` for dynamic filtering purpose
Related issue:
- uBlockOrigin/uBlock-issues#2496
2023-03-31 09:46:22 -04:00
Raymond Hill b4ae2d3bf4
Make `object` equivalent of `frame` for dynamic filtering purpose
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2496
2023-03-31 09:37:53 -04:00
Raymond Hill 2c55bc3780
Make Firefox dev build auto-update 2023-03-31 08:56:10 -04:00
Raymond Hill 0d5cb8cff5
Import translation work from https://crowdin.com/project/ublock 2023-03-31 08:49:00 -04:00
Raymond Hill b53f3c1137
New revision for dev build 2023-03-31 08:43:52 -04:00
Raymond Hill e2a158d94b
Add check before accessing vAPI 2023-03-31 08:28:09 -04:00
Raymond Hill 5c85fdbc32
Fix typo in code
Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2570#issuecomment-1491616007
2023-03-31 08:26:53 -04:00
Raymond Hill b5d78a07bf
Fix type in variable name
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2570
2023-03-30 20:46:44 -04:00
Raymond Hill a7c479083f
Make Firefox dev build auto-update 2023-03-30 17:25:13 -04:00
Raymond Hill 1f9ecffbd1
New revision for dev build 2023-03-30 17:14:09 -04:00
Raymond Hill 0b09155268
Clear unprocessed requests status on webNavigation reload event
Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/discussions/2564
2023-03-30 17:12:45 -04:00
Raymond Hill a6071565a5
Import translation work from https://crowdin.com/project/ublock 2023-03-30 16:35:52 -04:00
Raymond Hill 0a899e1279
Added strings to translate 2023-03-30 16:33:32 -04:00
Raymond Hill c3df4ced0a
Import translation work from https://crowdin.com/project/ublock 2023-03-30 16:32:24 -04:00
Raymond Hill 65e2f37585
Make Firefox dev build auto-update 2023-03-30 13:31:28 -04:00
Raymond Hill 0b6e25abb4
New revision for dev build 2023-03-30 13:26:48 -04:00
Raymond Hill d58309674d
Enfore implicit `media` type for filters using `mp4`
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2568
2023-03-30 13:25:45 -04:00
Raymond Hill b68a7dbad4
Make Firefox dev build auto-update 2023-03-30 13:05:59 -04:00
Raymond Hill a9239f93b6
New revision for dev build 2023-03-30 12:59:27 -04:00
Raymond Hill 42a00ec742
Better detect invalid network filter patterns
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2566
2023-03-30 12:58:19 -04:00
Raymond Hill 1835e90125
Avoid using `!` toolbar icon badge when inconsequential
uBO will now verify that at least one unprocessed network requests
at launch should have been blocked in order to warn users of
unprocessed network requests through the `!` toolbar icon badge.

For example, with default filter lists, there is nothing to block
on `wikipedia.org`, and hence in this case it's not useful to
present the user with the `!` badge.

Therefore uBO will not show the badge *only* when at least one
unprocessed network requests should have been blocked had uBO been
ready when it was fired by the browser.

Related commit:
- https://github.com/gorhill/uBlock/commit/769b8da664be
2023-03-30 12:30:44 -04:00
Raymond Hill 3d1c696e20
Support view source of "other" type 2023-03-30 12:29:02 -04:00
Raymond Hill 08d411a7b4
Clear network error status when list fetch succeed 2023-03-30 12:28:02 -04:00
Raymond Hill cee3c4822d
Make Firefox dev build auto-update 2023-03-29 13:11:15 -04:00