Commit Graph

9103 Commits

Author SHA1 Message Date
Manish Jethani 498f90966d
Bring suffixInPSL() from upstream (#3851) 2021-08-26 08:50:49 -04:00
Raymond Hill 5eac054ac7
Make Firefox dev build auto-update 2021-08-25 11:01:01 -04:00
Raymond Hill 7cde7b3602
New revision for dev build 2021-08-25 10:56:40 -04:00
Raymond Hill a21ecafbc6
Improve reliability of set-constant scriptlet
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1694
2021-08-25 10:48:50 -04:00
Raymond Hill 7ee9c21b37
Inject scriptlets at webNavigation.onCommitted time in Firefox
Just as is the case with Chromium.

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1694
2021-08-25 09:24:10 -04:00
Raymond Hill 92df3c9c22
Make Firefox dev build auto-update 2021-08-25 07:56:37 -04:00
Raymond Hill 45c1e0e683
New revision for dev build 2021-08-25 07:51:46 -04:00
Raymond Hill c3015cb383
Merge branch 'patch-1' of https://github.com/paledega/uBlock into fix 2021-08-25 07:47:07 -04:00
Raymond Hill a2d8545382
Forbid instances of `/*` in `:style()` operator
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1693
2021-08-25 07:43:26 -04:00
paledega 32ce27cf89
Update make-firefox.sh 2021-08-25 08:47:45 +00:00
Raymond Hill 5e6600a5cc
Make Firefox dev build auto-update 2021-08-24 12:40:58 -04:00
Raymond Hill 69e81cbe31
New revision for dev build 2021-08-24 12:34:58 -04:00
Raymond Hill 6dcd5df991
Take into account simple selectors present in array of selectors
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1692
2021-08-24 12:29:48 -04:00
Raymond Hill 811a9be45f
Make Firefox dev build auto-update 2021-08-24 10:16:33 -04:00
Raymond Hill b54c3d5f4f
New revision for dev build 2021-08-24 10:10:46 -04:00
Raymond Hill 18b0fa03f2
Import translation work from https://crowdin.com/project/ublock 2021-08-24 10:10:07 -04:00
Raymond Hill f0b46bde4f
Mitigate generic cosmetic filters erroneously targeting html/body
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1692

The ids/classes from html/body elements will leave out
looking up lowly generic cosmetic filters made of a single
identifier.

This does not absolutely guarantee that html/body elements
will never be targeted, but it should greatly mitigate the
probability that this erroneously happens.
2021-08-24 10:03:25 -04:00
Manish Jethani 925c01dc14
Fix ESLint globals error in biditrie.js (#3850) 2021-08-23 11:10:49 -04:00
Manish Jethani d959c7aabe
Remove globals.js (#3849) 2021-08-23 10:54:16 -04:00
Manish Jethani d13294dd39
Remove globals usage from background.js (#3848) 2021-08-23 10:28:44 -04:00
Manish Jethani 724a946c79
Remove globals usage from start.js (#3847) 2021-08-23 10:16:02 -04:00
Manish Jethani 9761b02c79
Convert publicsuffixlist.js into an ES module (#3846) 2021-08-23 09:42:27 -04:00
Raymond Hill ba83c21354
Fix trie instance iterator 2021-08-22 13:06:05 -04:00
Manish Jethani 9ddbb293c0
Convert punycode.js into an ES module (#3845) 2021-08-22 12:03:59 -04:00
Raymond Hill 73ae06230b
Make Firefox dev build auto-update 2021-08-22 11:00:53 -04:00
Raymond Hill 2a20ea1df7
New revision for dev build 2021-08-22 10:52:43 -04:00
Raymond Hill cfa00797ed
Add spacer at the bottom of popup panel in portrait mode
Related issues:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1604
- https://github.com/uBlockOrigin/uBlock-issues/issues/1691
2021-08-22 10:20:31 -04:00
Manish Jethani 1bde1e5ecb
Convert regex.js into an ES module (#3844) 2021-08-22 08:25:06 -04:00
Manish Jethani d6339ada62
Use WebAssembly object directly in index.js (#3843) 2021-08-21 16:02:32 -04:00
Raymond Hill cd2a03fb89
Make Firefox dev build auto-update 2021-08-21 11:56:02 -04:00
Raymond Hill d08cb5ed10
New revision for dev build 2021-08-21 11:52:10 -04:00
Raymond Hill 9d4006f2c3
Include query string when evaluating `matches-path()`
Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1690#issuecomment-903133439
2021-08-21 11:50:46 -04:00
Raymond Hill ef5385b3f4
Make Firefox dev build auto-update 2021-08-21 10:25:55 -04:00
Raymond Hill e612d1c1f0
New revision for dev build 2021-08-21 10:22:22 -04:00
Raymond Hill c0c70e2987
Fix normalization of `matches-path` operator
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1690
2021-08-21 10:20:43 -04:00
Raymond Hill b2a792bae1
Make Firefox dev build auto-update 2021-08-21 10:16:21 -04:00
Raymond Hill fa482c0466
New revision for dev build 2021-08-21 10:00:13 -04:00
Raymond Hill 9dece3bd30
Add new procedural cosmetic operator: `:matches-path(...)`
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1690

New procedural operator: `:matches-path(...)`

Description: this is a all-or-nothing passthrough operator, which
on/off behavior is dictated by whether the argument match the
path of the current location. The argument can be either plain
text to be found at any position in the path, or a literal regex
against which the path is tested.

Whereas cosmetic filters can be made specific to whole domain,
the new `:matches-path()` operator allows to further narrow
the specificity according to the path of the current document
lcoation.

Typically this procedural operator is used as first operator in
a procedural cosmetic filter, so as to ensure that no further
matching work is performed should there be no match against the
current path of the current document location.

Example of usage:

    example.com##:matches-path(/shop) p

Will hide all `p` elements when visiting `https://example.com/shop/stuff`,
but not when visiting `https://example.com/` or any other page
on `example.com` which has no instance of `/shop` in the path part
of the URL.
2021-08-21 09:41:48 -04:00
Manish Jethani 5d2c295600
Remove globals usage from hntrie.js (#3842) 2021-08-21 07:33:53 -04:00
Raymond Hill 7186bd24e5
Ignore jshint warning about URLSearchParams 2021-08-20 08:12:27 -04:00
Manish Jethani ab13903019
Remove globals usage from static-net-filtering.js (#3841) 2021-08-20 07:54:05 -04:00
Raymond Hill 02a17af810
Let the caller do the awaiting
Local useLists() no longer returns a reference to
internal snfe instance.
2021-08-19 07:34:02 -04:00
Raymond Hill 19160f9018
Drop `requestIdleCallback` from globals
Related discussion:
- https://github.com/gorhill/uBlock/pull/3839

`requestIdleCallback` can be assumed always present on
browser-related platforms.
2021-08-19 07:31:27 -04:00
Raymond Hill 68675ed1cd
Remove pointless dependency on `location`
Related discussion:
- https://github.com/gorhill/uBlock/pull/3839#discussion_r691502793
2021-08-19 07:23:53 -04:00
Manish Jethani b19393d8dc
Add tasks.js module (#3839) 2021-08-19 07:19:20 -04:00
Manish Jethani 4c1c6309b3
Add tests for SNFE filter loading multiple calls (#3836) 2021-08-18 07:52:54 -04:00
Manish Jethani 2a130704e3
Add check-leaks make target (#3837) 2021-08-18 07:28:23 -04:00
Raymond Hill 7a5c4e9547
Throw when useLists() called concurrently
Related feedback:
- https://github.com/gorhill/uBlock/pull/3836/files#r690687656
2021-08-17 16:57:39 -04:00
Raymond Hill 60e254608a
Expose hasQuery() and fix coarse test for query parameters 2021-08-17 16:49:43 -04:00
Raymond Hill 8959cea3cc
Expose matchAndFetchModifiers() in npm package
Also, add instrumentation for the method in dig-snfe.
2021-08-17 12:48:39 -04:00