Commit Graph

8080 Commits

Author SHA1 Message Date
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
Raymond Hill a211c2c95d
Convert selector compiler closured code into standalone class
This ensures proper garbage collection once the parser
is no longer referenced -- this is important now that
the parser is instantiated on-demand only.
2020-06-13 12:53:49 -04:00
Raymond Hill 0ec4c911dd
Fix improper handling of regex flags in search widget
Reported internally.

Potential regex flags are passed as is to RegExp contructor,
and in case of failure the query is deemed a plain text one.

Related commit:
- 8de67d22bd (diff-3f4aa453cefa49f6431f1bba3bb53a8e)
2020-06-13 11:13:48 -04:00
Raymond Hill 99a162f925
Make Firefox dev build auto-update 2020-06-13 09:05:32 -04:00
Raymond Hill 1d5800629a
New revision for dev build 2020-06-13 08:57:49 -04:00
Raymond Hill 1a082e0581
Expand parser's ability to process static extended filtering
This commit moves some of the parsing logic of static
extended filtering into the static filtering parser; this
allows better syntax highlighting and creation-time
error-catching for cosmetic, HTML, and scriptlet filters.
2020-06-13 08:48:56 -04:00
Raymond Hill 681bd70116
Fix reverse lookup of generic cosmetic exception filters
Reported internally.
2020-06-11 07:18:45 -04:00
Raymond Hill 89fcdc6a11
Update URL for EasyList Lithuania
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1106
2020-06-10 16:28:31 -04:00
Raymond Hill d775a58712
Make Firefox dev build auto-update 2020-06-10 12:35:34 -04:00
Raymond Hill bfa6493abe
Import translation work from https://crowdin.com/project/ublock 2020-06-10 12:29:22 -04:00