Commit Graph

7789 Commits

Author SHA1 Message Date
Raymond Hill ca0c48717b
Make Firefox dev build auto-update 2020-06-26 10:21:18 -04:00
Raymond Hill 1760294741
New revision for release candidate 2020-06-26 10:12:59 -04:00
Raymond Hill f433932d86
Add support for wildcard/array in json-prune
Add support for specially-named properties:

`[]`, to iterate through all elements in an array, in
order to deal more graciously with cases where the
property to remove is an element in an array. An
actual case:

    +js(json-prune, playlist.movies.0.adserver playlist.movies.1.adserver ...)

Can be now converted to:

    +js(json-prune, playlist.movies.[].adserver)

`*`, to iterate through all own properties of an object,
in order to deal with random-named properties. For
example (not an actual case):

    +js(json-prune, playlist.*.adserver)

Where `adserver` would be a property member of an
object which is itself a property of `playlist`, but
which name is unknown or is variable.
2020-06-26 10:03:48 -04:00
Raymond Hill da6cdf977e
Make Firefox dev build auto-update 2020-06-25 17:35:33 -04:00
Raymond Hill b4a06e9fe8
Import translation work from https://crowdin.com/project/ublock 2020-06-25 17:28:51 -04:00
Raymond Hill 726f03febc
new revision for release candidate 2020-06-25 17:26:53 -04:00
Raymond Hill db198b0904
Fix regression in pure hostname filters with wildcard
The regression broke filters of the form:

    ||trk*.vidible.tv^

The new parser will eventually interpret differently
wildcard characters when they are used in a manner
meant to represent only hostname-valid characters,
but this will come in a future version -- for now
the default meaning must be preserved until the
static network filtering engine is modified to
enforce the new interpretation.
2020-06-25 17:13:42 -04:00
Raymond Hill c4d39d3763
Fix cookie removal on subdomains of base domain
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1126
2020-06-24 17:18:14 -04:00
Raymond Hill d95bab1e43
Make Firefox dev build auto-update 2020-06-21 13:45:22 -04:00
Raymond Hill 730fa92d18
New revision for release candidate 2020-06-21 13:33:23 -04:00
Raymond Hill ec4de80345
Revert "Reject downloaded lists which are deemed truncated"
This reverts commit de219dae26.
2020-06-21 13:31:13 -04:00
Raymond Hill 22864cc3a9
Make Firefox dev build auto-update 2020-06-21 08:25:24 -04:00
Raymond Hill 63f1b866e7
Import translation work from https://crowdin.com/project/ublock 2020-06-21 08:17:18 -04:00
Raymond Hill 7405455419
New revision for release candidate 2020-06-21 08:13:46 -04:00
Raymond Hill 86d28b57c3
Outright reject patterns with more than one space character
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1118

This is not a complete fix for the reported issue, but this
should catch many reported cases of invalid filters in the
wild.
2020-06-21 08:08:18 -04:00
Raymond Hill 2ea6769065
Make Firefox dev build auto-update 2020-06-19 11:51:17 -04:00
Raymond Hill 178d006873
New revision for stable build 2020-06-19 11:39:02 -04:00
Raymond Hill de219dae26
Reject downloaded lists which are deemed truncated
Related feedback:
- https://www.reddit.com/r/uBlockOrigin/comments/hbpo86/

For unknown reasons at this point, it appears some users
end up with a truncated version of EasyList, leading to
improper blocking in uBO.

This commit adds a heuristic to discard a downloaded list
when its new size is more than 25% smaller than the
currently cached version.
2020-06-19 11:35:44 -04:00
Raymond Hill 774fb15ebb
Make Firefox dev build auto-update 2020-06-18 11:41:08 -04:00
Raymond Hill 1bbacb0864
New revision for release candidate 2020-06-18 11:34:56 -04:00
Raymond Hill 64cfc5779d
Use `default_public_interface_only` in Chromium-based browser
Related feedback:
- https://www.reddit.com/r/uBlockOrigin/comments/hbea3z/

It appears the implementation of the `disable_non_proxied_udp`
setting changed in Chromium, leading to WebRTC becoming
wholly unfunctional. Fall back to use `default_public_interface_only`
in Chromium-based browsers.
2020-06-18 11:30:05 -04:00
Raymond Hill f889dc6e11
Make Firefox dev build auto-update 2020-06-18 08:36:18 -04:00
Raymond Hill 05c040ab8b
New revision for release candidate 2020-06-18 08:30:55 -04:00
Raymond Hill 5295bd2280
Import translation work from https://crowdin.com/project/ublock 2020-06-18 08:00:53 -04:00
Raymond Hill 3f9c5b9bc4
Fix regression in syntax highlighting
Specifically, fix trailing comments improperly
rendered as filter option.

Regression from:
- https://github.com/gorhill/uBlock/commit/6d8b310d9422#diff-fb99537d908d0afc8d76e7c98bbc9fea
2020-06-17 12:32:52 -04:00
Raymond Hill d9dc098d58
Make Firefox dev build auto-update 2020-06-17 08:30:49 -04:00
Raymond Hill 73f83b8333
New revision for release candidate 2020-06-17 08:15:15 -04:00
Raymond Hill bbf1cb22a0
Improve auto-completion heuristics
Related commit:
- 3e72a47c1f
2020-06-17 08:12:47 -04:00
Raymond Hill 001e1ea21e
Fix syntax-highlighting of regex-based filters
Regression from:
- https://github.com/gorhill/uBlock/commit/6d8b310d9422#diff-fb99537d908d0afc8d76e7c98bbc9fea
2020-06-16 18:56:26 -04:00
Raymond Hill 4dc920484c
Make Firefox dev build auto-update 2020-06-16 11:00:37 -04:00
Raymond Hill 9056f1923b
New revision for dev build 2020-06-16 10:50:32 -04:00
Raymond Hill aa000e282e
Add auto-completion for procedural operators
Related commit:
- 3e72a47c1f
2020-06-16 08:59:55 -04:00
Raymond Hill de8d217983
Make Firefox dev build auto-update 2020-06-15 19:15:49 -04:00
Raymond Hill 42df661d9b
New revision for dev build 2020-06-15 19:08:39 -04:00
Raymond Hill c9cfd62c21
Add auto-completion capability for filter options
Related commit:
- 3e72a47c1f

Use ctrl-space to auto-complete filter options and
`redirect=` resources in _"My filters"_ pane.
2020-06-15 19:05:39 -04:00
Raymond Hill 5cb2283736
Make Firefox dev build auto-update 2020-06-15 09:31:09 -04:00
Raymond Hill 2a167586c6
Import translation work from https://crowdin.com/project/ublock 2020-06-15 09:22:41 -04:00
Raymond Hill 775f676883
New revision for dev build 2020-06-15 09:20:06 -04:00
Raymond Hill 3e72a47c1f
Add support for auto-completion in _My filters_ pane
This commit adds CodeMirror's auto-completion capability
to the _My filters_ pane.

Currently, auto-completion is available for scriptlet
tokens: pressing ctrl-space while the text cursor is
positioned where a scriptlet token should appear will
cause auto-completion to kick-in. In case of ambiguity,
CodeMirror's widget to pick a specific scriptlet will
appear.
2020-06-15 09:15:13 -04:00
Raymond Hill f8b0ee0fdc
Fix validation of redirect rules with `empty` resource
The `empty` resource is a special case, it does not
require a network type to be present to be valid.
2020-06-15 07:40:18 -04:00
Raymond Hill cb5437b161
Support redirect rules with no pattern
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/977

No pattern will imply `*` for the redirect destination
part of the rule.
2020-06-14 15:09:35 -04:00
Raymond Hill 7e4b920bc7
Make Firefox dev build auto-update 2020-06-14 14:21:10 -04:00
Raymond Hill 11a2d2123e
New revision for dev build 2020-06-14 14:04:20 -04:00
Raymond Hill 0e32e4391d
Add ability to comment out block of filters
Pressing Tab in _My filters_ will toggle the
commenting out of filters in the current
selection or current line if no selection.
2020-06-14 14:02:33 -04:00
Raymond Hill 84e53541aa
Make Firefox dev build auto-update 2020-06-14 12:20:36 -04:00
Raymond Hill 75e364083b
New revision for dev build 2020-06-14 12:13:52 -04:00
Raymond Hill 6d8b310d94
Minor code review of static filtering parser
Rename `l` property to `len`, to avoid ambiguity as
`l` could mean _left_ or _length_. Typically `l` is
to be used for _left_ (whereas `r` is to be used for
_right_).

Additionally, add CodeMirror's bracket-matching and
bracket auto-closing to _My filters_ pane and and
bracket-matching to asset viewer page.
2020-06-14 12:05:42 -04:00
Raymond Hill 2523959f20
Better handling of separator errors in domain lists
Specifically, do not invalidate valid hostnames when
there are extraneous separators: that sort of error
will be visually highlighted but will not otherwise
prevent a filter from being properly enforced.
2020-06-13 17:04:42 -04:00
Raymond Hill 875a33e381
Make Firefox dev build auto-update 2020-06-13 13:00:43 -04:00
Raymond Hill f04d5cd71a
New revision for dev build 2020-06-13 12:56:15 -04:00