Commit Graph

8958 Commits

Author SHA1 Message Date
Raymond Hill 0bb57e7bc5
New revision for dev build 2021-07-15 13:19:43 -04:00
Raymond Hill d17e22a505
Fix spurious error messages when updating contextual menu
There were spurious error messages in the dev console of
uBO in Firefox, because Firefox does not silently ignore
duplicate contextual menu entries, which could occur
transiently when the contextual menu entries were updated.

The fix simplifies contextual menu code, and actually
fulfill the original goal of avoiding to call extensions
framework API as much as possible.
2021-07-15 13:14:37 -04:00
Raymond Hill bbdb68a2b6
Synthesize missing expected onCreatedNavigationTarget events
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1659

This commit introduces a workaround for missing
onCreatedNavigationTarget() in Chromium.
2021-07-15 11:34:37 -04:00
Raymond Hill e03bb99f57
Add neutered replacement script for mixpanel
Related discussion:
- https://www.reddit.com/r/uBlockOrigin/comments/oicch9/

The new replacement script contains the smallest API
possible to resolve the reported case.

Please report instances where it's not sufficient to
unbreak a site, in which case I will extend the neutered
API to address these cases on an on-demand basis.
2021-07-13 07:58:31 -04:00
Raymond Hill 7735ad119d
Make Firefox dev build auto-update 2021-07-12 18:40:42 -04:00
Raymond Hill a1452f198a
New revision for dev build 2021-07-12 18:34:51 -04:00
Raymond Hill 9a60573abe
Fix broken "Block element..." case when cosmetic filtering is off
Related feedback:
- e983f9a76e (commitcomment-53382148)
2021-07-12 18:32:32 -04:00
Raymond Hill b7047e04d0
Make Firefox dev build auto-update 2021-07-12 12:15:49 -04:00
Raymond Hill 84f0f670b0
New revision for dev build 2021-07-12 12:10:21 -04:00
Raymond Hill e983f9a76e
Disable creation of cosmetic filters in picker when unenforceable
Related issue:
- https://github.com/gorhill/uBlock/issues/3212

The element picker will now properly work on sites where
cosmetic filtering is disabled, but will not allow the
creation of cosmetic filters when specific cosmetic filters
are not meant to be enforced in the current page.

When specific cosmetic filters are not meant to be enforced,
the element picker will still allow the creation of network
filters, that is unless the current page is trusted, in which
case using the element picker is pointless.
2021-07-12 11:55:58 -04:00
Raymond Hill f1a453d349
Avoid pointless check of doc id, presence of doc origin is what matter
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1657
2021-07-12 11:26:25 -04:00
Raymond Hill 717d8593c5
Improve the logger accuracy regarding matched part of the URL
Related issue:
- https://github.com/gorhill/uBlock/issues/3037

This takes care of the specific case reported. There are
other edge cases which are likely not addressed though, i.e.
those involving wildcards -- those should be rather rare and
at this point I rather leave them unaddressed to not
risk regressions (as they are less trivial to address).
2021-07-11 10:11:26 -04:00
Raymond Hill c2859712fb
Make Firefox dev build auto-update 2021-07-10 16:50:50 -04:00
Raymond Hill 4b10881965
New revision for dev build 2021-07-10 16:37:07 -04:00
Raymond Hill 27c633e054
Better handle negated behhvior types
Related issue:
- https://github.com/gorhill/uBlock/issues/2385
2021-07-10 16:35:52 -04:00
Raymond Hill ed5dd0a791
Use location.replace() to modify URL of embedded frame
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1648
2021-07-10 09:56:36 -04:00
Raymond Hill def2013692
Make Firefox dev build auto-update 2021-07-07 11:00:54 -04:00
Raymond Hill c4cbc1cc1e
New revision for dev build 2021-07-07 10:54:06 -04:00
Raymond Hill d3b1ca333c
Make getByName() return an dummy Tracker object
Related issue:
- https://www.reddit.com/r/uBlockOrigin/comments/o44syz/ublock_origin_136_announcement_thread/h4big1n/
2021-07-07 10:52:16 -04:00
Raymond Hill f2899c1f8a
Make Firefox dev build auto-update 2021-07-06 10:26:46 -04:00
Raymond Hill 3df8f78148
New revision for dev build 2021-07-06 10:15:24 -04:00
Raymond Hill b75921c2fd
Limit recursion when parsing URL in document-blocked page
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1649
2021-07-06 10:13:50 -04:00
Raymond Hill a7184a7874
Merge branch 'master' of https://github.com/gorhill/uBlock 2021-07-06 10:01:46 -04:00
Raymond Hill 0952dd52c6
Add "Block access to LAN" as stock list
Enabling the list did NOT cause measurable difference in
results of built in benchmark.
2021-07-06 10:01:26 -04:00
Raymond Hill 33bc430aad
Add "Block access to LAN" as stock list
Enabling the list did cause measurable difference in
results of built in benchmark.
2021-07-06 09:42:10 -04:00
Raymond Hill 8f45d9a50e
Make Firefox dev build auto-update 2021-07-03 09:31:53 -04:00
Raymond Hill 80a81284dc
Import translation work from https://crowdin.com/project/ublock 2021-07-03 09:26:21 -04:00
Raymond Hill c91b4258e9
Put back mistakenly removed newline 2021-07-03 09:23:06 -04:00
Raymond Hill e36b4b4057
New revision for dev build 2021-07-03 09:21:38 -04:00
Raymond Hill 35d7406214
Add `asap` behavior to `remove-attr` scriptlet
Related issue:
- https://github.com/uBlockOrigin/uAssets/issues/9528
2021-07-03 09:19:24 -04:00
Raymond Hill 5a7600925b
Make Firefox dev build auto-update 2021-06-26 12:30:53 -04:00
Raymond Hill 2c6a81e81c
New revision for dev build 2021-06-26 12:14:50 -04:00
Raymond Hill 4422c42788
Discard network filters containing invalid pattern characters
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1146
2021-06-26 12:12:25 -04:00
Raymond Hill b41463d437
Skip handling non-media elements 2021-06-25 07:24:00 -04:00
Raymond Hill 163035dc92
Drop the `v` from build version 2021-06-25 07:18:11 -04:00
Raymond Hill 2a8c85b132
Add "AdGuard URL Tracking" list as stock lists (under "Privacy") 2021-06-25 07:09:22 -04:00
Raymond Hill 14076fe8c0
Take care of misreporting spurious filter syntax error
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1596
2021-06-24 11:48:27 -04:00
Raymond Hill 3b5aacac12
Make Firefox dev build auto-update 2021-06-24 11:16:27 -04:00
Raymond Hill 0dbe581c5b
Ensure pending callbacks are called only once 2021-06-24 11:08:55 -04:00
Raymond Hill 10efc35610
Import translation work from https://crowdin.com/project/ublock 2021-06-24 11:07:38 -04:00
Raymond Hill 2efb961085
New revision for dev build 2021-06-24 11:05:03 -04:00
Raymond Hill 81521256e7
Exclude trusted sites from no-popups-switch
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1616
2021-06-24 11:02:06 -04:00
Raymond Hill ad15a5dd51
Map `csp_report` to `other`
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1622
2021-06-24 08:09:18 -04:00
Raymond Hill 39a51a6e43
Import translation work from https://crowdin.com/project/ublock 2021-06-19 11:22:50 -04:00
Raymond Hill b129e9c329
New revision for stable release 2021-06-19 11:20:08 -04:00
Raymond Hill 91e9a4c34f
Make Firefox dev build auto-update 2021-06-17 10:16:18 -04:00
Raymond Hill 86ff2404f8
Import translation work from https://crowdin.com/project/ublock 2021-06-17 10:03:50 -04:00
Raymond Hill 60e269576f
New revision for release candidate 2021-06-17 10:00:53 -04:00
Raymond Hill 090614dd18
Use `firstElementChild` instead of `childElementCount`
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1620

Related bugzilla issue:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1715841
2021-06-17 09:58:18 -04:00
Raymond Hill 6291168e9a
Make Firefox dev build auto-update 2021-06-14 07:46:01 -04:00