Commit Graph

12744 Commits

Author SHA1 Message Date
Raymond Hill c8174d6032
Improve `trusted-set-attr` scriptlet
Related feedback:
11ca4a3923 (commitcomment-149148167)
2024-11-16 08:10:25 -05:00
Raymond Hill 947602d4fe
[mv3] Slightly mitigate DNR flaw re. `removeparam` filters
Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/140

This will allow more specific `removeparam` filters to override
generic ones. This doesn't fix the related issue but should help
more specific `removeparam` filters to be applied.

Related webextensions issue:
https://github.com/w3c/webextensions/issues/468
2024-11-15 10:01:29 -05:00
Raymond Hill 7fcd2a51be
Make Firefox dev build auto-update 2024-11-14 10:51:21 -05:00
Raymond Hill 2e66d7bd55
Import translation work from https://crowdin.com/project/ublock 2024-11-14 10:40:55 -05:00
Raymond Hill 3066386d0e
New revision for dev build 2024-11-14 10:35:21 -05:00
Raymond Hill b709a56ce6
Update changelog 2024-11-14 10:35:01 -05:00
Raymond Hill 4c299bfca9
Better handle unexpected conditions when deserializing
For example, when deserialzing from corrupted storage.
2024-11-14 10:32:15 -05:00
Raymond Hill ff5fc61753
Add support for EasyList `{ remove: true }` cosmetic filter syntax
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3451
2024-11-14 10:24:50 -05:00
Raymond Hill 2e745f9bfb
[mv3] Remove obsolete Firefox-only workaround in scriptlet template
Related bugzilla issue:
https://bugzilla.mozilla.org/show_bug.cgi?id=1736575

The issue was fixed months ago.

The removed code block is causing uBOL to be flagged as "including
remotely hosted code".

To be clear, the removed obsolete code block was not related to
executing remote code. The referenced code was in the file itself,
not remote, and this was a workaround for when Firefox was not
supporting injecting script in the `MAIN` world.

The issue was fixed months ago in Firefox, so there is no point for
the workaround.
2024-11-13 09:10:51 -05:00
Raymond Hill d325dcd192
Make Firefox dev build auto-update 2024-11-11 15:45:32 -05:00
Raymond Hill 7ccb4c6314
New revision for dev build 2024-11-11 15:21:41 -05:00
Raymond Hill 52d21b8df9
Update changelog 2024-11-11 15:21:16 -05:00
Raymond Hill 335d947c10
Fix potential infinite async loop
Related issue:
https://bugzilla.mozilla.org/show_bug.cgi?id=1929326

As identified by @Rob--W:
https://bugzilla.mozilla.org/show_bug.cgi?id=1929326#c9

Truncated or otherwise corrupted asset content in extension storage
could lead to infinite async loop causing high CPU usage in uBO and
its workers.

Likely related to the issue of the asset content returned as
`undefined`:
652f178787/src/js/cachestorage.js (L98)
2024-11-11 15:17:19 -05:00
Raymond Hill 15dae359f7
[mv3] Add support to add/remove rulesets through policies
Related discussion:
https://github.com/uBlockOrigin/uBOL-home/discussions/35#discussioncomment-11157444

New policy setting: `rulesets`
Type: array
Type of array items: string

Each item in the list is a list id (as seen in `rulesets/ruleset-details.json`),
prefixed with either `+` to enable the ruleset, or `-` to disable the ruleset.

Users will not be able to enable or disable rulesets present in the `rulesets`
policy. Disabled rulesets will not appear in the dashboard.

Use `-*` to remove all non-default rulesets, except for those added
using `+[ruleset_id]`.

Additionally, some work has been done to properly handle policy changes in
a non-blocking and deferred manner, as I observed that it often takes long
for calls to `storage.manage.get` to resolve. This potentailly takes care
of the following issue:
https://github.com/uBlockOrigin/uBOL-home/issues/174
2024-11-11 13:20:54 -05:00
Raymond Hill 74921a0f27
Make Firefox dev build auto-update 2024-11-08 12:26:24 -05:00
Raymond Hill 74d8be96d2
Fix more workflow warnings; fix steps order 2024-11-08 12:17:27 -05:00
Raymond Hill 689ffbe7d3
Address workflow warnings 2024-11-08 12:07:30 -05:00
Raymond Hill dc81a39a99
New revision for dev build 2024-11-08 11:26:13 -05:00
Raymond Hill 93e2d7f143
Update changelog 2024-11-08 11:25:56 -05:00
Raymond Hill e5a088738d
Keep moving related scriptlets into separate files 2024-11-08 11:22:31 -05:00
Raymond Hill ce4908b341
Improve `prevent-xhr` scriptlet 2024-11-08 08:48:07 -05:00
Raymond Hill 41616df866
Improve `trusted-suppress-native-method` scriptlet
Add `debug` as disposition option: if the `how` parameter is `debug`,
the scriptlet will trigger a `debugger` statement and the target
method won't be suppressed. Useful to find out how the method is
being called by page code. To be used for investigation purpose only.
2024-11-08 08:32:19 -05:00
Raymond Hill fd60f54a5f
Make Firefox dev build auto-update 2024-11-07 12:15:43 -05:00
Raymond Hill 34eed9abef
Update changelog 2024-11-07 12:09:41 -05:00
Raymond Hill e854c4752b
New revision for dev build 2024-11-07 11:59:57 -05:00
Sander Lepik f90ccb7c62
Move Estonian list away from .php extension (#3926) 2024-11-07 10:27:26 -05:00
Raymond Hill e613282698
Improve `set-cookie` scriptlet
Allow negative integer as valid value.

Related issue:
https://github.com/gorhill/uBlock/pull/3927

Additionally, move cookie-related scriptlets/helpers into its own
source code file.
2024-11-07 10:23:34 -05:00
Raymond Hill 652f178787
New revision for stable release 2024-11-05 09:27:11 -05:00
Raymond Hill e164250fea
Comment 2024-11-05 09:26:23 -05:00
Raymond Hill 54ed02e302
Import translation work from https://crowdin.com/project/ublock 2024-11-05 09:25:01 -05:00
Raymond Hill 12817eee57
Squashed commit of the following:
commit a4d319437a
Author: daylight <starcrush@monemail.com>
Date:   Fri Nov 1 21:01:06 2024 +0300

    Delete .gitmodules

commit 57b7d98148
Author: daylight <starcrush@monemail.com>
Date:   Fri Nov 1 17:47:50 2024 +0300

    Delete dist/mv3/log.txt

commit c936a72bb3
Author: daylight <starcrush@monemail.com>
Date:   Fri Nov 1 17:47:16 2024 +0300

    Update dist/README.md

commit b5aaec47b3
Author: daylight <starcrush@monemail.com>
Date:   Fri Nov 1 17:46:53 2024 +0300

    Update release head

commit be2da15508
Author: daylight <starcrush@monemail.com>
Date:   Fri Nov 1 17:46:37 2024 +0300

    Update links in readme

commit 3019dfc37a
Author: daylight <starcrush@monemail.com>
Date:   Fri Nov 1 17:46:16 2024 +0300

    Update contributing guide

commit 3b9333dbd8
Author: daylight <starcrush@monemail.com>
Date:   Fri Nov 1 17:45:53 2024 +0300

    Update CI

commit 2831a0d0fd
Author: daylight <starcrush@monemail.com>
Date:   Fri Nov 1 17:45:31 2024 +0300

    Update config
Revert "Update CI"

This reverts commit 3b9333dbd8.
2024-11-04 10:12:25 -05:00
daylight a4d319437a
Delete .gitmodules 2024-11-01 16:33:23 -04:00
daylight 57b7d98148
Delete dist/mv3/log.txt 2024-11-01 16:33:23 -04:00
daylight c936a72bb3
Update dist/README.md 2024-11-01 16:33:23 -04:00
daylight b5aaec47b3
Update release head 2024-11-01 16:33:23 -04:00
daylight be2da15508
Update links in readme 2024-11-01 16:33:23 -04:00
daylight 3019dfc37a
Update contributing guide 2024-11-01 16:33:22 -04:00
daylight 3b9333dbd8
Update CI 2024-11-01 16:33:22 -04:00
daylight 2831a0d0fd
Update config 2024-11-01 16:33:22 -04:00
Raymond Hill 121ac712f7
Make Firefox dev build auto-update 2024-11-01 11:41:35 -04:00
Raymond Hill 67310b0fb6
New revision for stable release candidate 2024-11-01 11:36:43 -04:00
Raymond Hill 331a82775f
Update changelog 2024-11-01 11:36:08 -04:00
Raymond Hill 8884f259c1
Improve `prevent-refresh` scriptlet
Related discussion:
https://github.com/uBlockOrigin/uAssets/issues/25859#issuecomment-2449623891
2024-11-01 11:33:34 -04:00
Raymond Hill eab0fd4e57
Make Firefox dev build auto-update 2024-10-31 12:11:01 -04:00
Raymond Hill d401527e83
Import translation work from https://crowdin.com/project/ublock 2024-10-31 11:28:06 -04:00
Raymond Hill d70c602575
New revision for stable release candidate 2024-10-31 11:25:18 -04:00
Raymond Hill 34771d02d1
Fine tune visuals in document-blocked page
Related feedback:
https://github.com/uBlockOrigin/uBlock-issues/issues/3206#issuecomment-2449415643
2024-10-31 11:18:42 -04:00
Raymond Hill fd3624f541
Make Firefox dev build auto-update 2024-10-30 19:16:41 -04:00
Raymond Hill eb37cd870d
New revision for stable release candidate 2024-10-30 19:07:24 -04:00
Raymond Hill a5d7e68ebe
Update changelog 2024-10-30 19:06:57 -04:00