Raymond Hill
ae6b53479d
[mv3] Minor change to debug output
2024-08-06 14:55:30 -04:00
Raymond Hill
fb037e97d0
[mv3] Improve `remove-attr.js` scriptlet
...
Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/166
2024-08-06 14:47:03 -04:00
Raymond Hill
417dab538c
[mv3] Fix generating `allowAllRequests` rule when default mode is no-filtering
2024-08-04 11:59:16 -04:00
Raymond Hill
d42329a3a3
Rephrase more accurately
...
Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/160
2024-08-03 12:03:56 -04:00
Raymond Hill
9562b19a93
Fall back to "Basic" when removing `all-urls` from "No filtering"
...
Related discussion:
https://github.com/uBlockOrigin/uBOL-home/issues/156#issuecomment-2254576670
2024-08-01 11:24:42 -04:00
Raymond Hill
a0de43aba9
Import translation work from https://crowdin.com/project/ublock
2024-07-29 16:05:15 -04:00
Raymond Hill
c7b54af0a2
[mv3] Add minimal ability to diagnose ruleset issue
...
A new icon has been added to the popup panel, to open a popup
window with a terse list of DNR events for the current tab, in
reverse chronological order (most recent DNR event appears at
the top).
The new ability is available only when the extension is sideloaded,
as per `declarativeNetRequestFeedback` documentation. Ref:
https://developer.chrome.com/docs/extensions/reference/api/declarativeNetRequest#event-onRuleMatchedDebug
Purposefully minimal, so as to have something rather than nothing
when having to diagnose filtering issue with the DNR API. Example:
https://github.com/uBlockOrigin/uBOL-home/issues/156
The content of the popup window does not dynamically update, force
a refresh (F5) to get the most recent DNR events. This might be
improved in the future.
The DNR event buffer is not persisted, so the buffer is empty when
service worker is restarted. This might be improved in the future
by using session storage API.
There is no output filtering ability in this first draft. This
might be improved in the future.
DNR rules are reported. The filter from which a DNR rule
originates is not reported. Given that the rulesets are optimized
after conversion from original filter lists to reduce the DNR rule
count, this is unlikely to ever be possible.
2024-07-29 14:54:46 -04:00
Raymond Hill
2bdbac1b84
Import translation work from https://crowdin.com/project/ublock
2024-07-09 13:16:17 -04:00
Raymond Hill
57ed293760
[mv3] Fix bad test re. managed storage
2024-06-28 13:39:38 -04:00
Raymond Hill
88065d0091
[mv3] Bring procdural cosmetic filtering code up to date with uBO
2024-06-22 11:09:57 -04:00
Raymond Hill
5c69159b36
[mv3] Inject procedural cosmetic filtering script earlier
...
Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/139
2024-06-22 11:06:19 -04:00
Raymond Hill
b24793bc02
Import translation work from Crowdin
2024-06-11 07:47:26 -04:00
Raymond Hill
91ee5bdeae
Improve `prevent-addEventListener` scriptlet
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3061#issuecomment-2159662039
2024-06-11 07:44:43 -04:00
Raymond Hill
ad77938f24
[mv3] Raise minimum chromium version to 118
...
This allows to drop the special handling of `isUrlFilterCaseSensitive`
for chromium-based browsers.
2024-05-29 09:57:09 -04:00
Raymond Hill
98977971db
[mv3] Improve generic cosmetic filtering surveyor
2024-05-28 22:08:24 -04:00
Raymond Hill
8ea1bac80b
Trim end of class tokens in generic cosmetic filtering's surveyor
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3257
2024-05-28 18:42:06 -04:00
Raymond Hill
e738eaa447
Import translation work from https://crowdin.com/project/ublock
2024-05-12 15:51:46 -04:00
Raymond Hill
e7951c2114
Import translation work from https://crowdin.com/project/ublock
2024-04-08 08:23:48 -04:00
Raymond Hill
7ca3855395
Import translation work from https://crowdin.com/project/ublock
2024-04-01 08:33:56 -04:00
Raymond Hill
08b8b875ca
Import translation work from https://crowdin.com/project/ublock
2024-03-29 09:26:56 -04:00
Raymond Hill
d3fe073149
Import translation work from https://crowdin.com/project/ublock
2024-03-28 08:21:46 -04:00
Raymond Hill
27e0db1dd2
Import translation work from https://crowdin.com/project/ublock
2024-03-26 12:47:05 -04:00
Raymond Hill
c6019e755b
Import translation work from https://crowdin.com/project/ublock
2024-03-23 13:33:08 -04:00
Raymond Hill
47ae87724a
Import translation work from https://crowdin.com/project/ublock
2024-03-22 14:53:22 -04:00
Raymond Hill
d368747235
Import translation work from https://crowdin.com/project/ublock
2024-03-22 09:49:42 -04:00
Raymond Hill
0a7e2d2ae8
Import translation work from https://crowdin.com/project/ublock
2024-03-21 13:59:06 -04:00
Raymond Hill
764a1772ba
[mv3] Add option to disable toolbar icon badge
...
Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/119
2024-03-21 13:57:50 -04:00
Raymond Hill
62965cd34f
Import translation work from https://crowdin.com/project/ublock
2024-03-21 13:55:53 -04:00
Raymond Hill
65b6753c69
Simpler to use an extra property than to use a new assets.json
2024-03-14 10:20:25 -04:00
Raymond Hill
52b46eb98b
Add procedural operator `:shadow()` -- status is experimental
...
For internal use by filter list maintainers, do not open issues
about this. Left undocumented on purpose.
This new procedural operator allows to target elements in the
shadow root of an element.
subject:shadow(arg)
- Description: Look-up matching elements inside the shadow root (if
present) of _subject_.
- Chainable: Yes
- _subject_: Can be a plain or procedural selector.
- _arg_: A plain or a procedural selector for the elements to target
inside the shadowroot.
Example:
..##body > div:not([class]):shadow(div[style]):has(:shadow([data-i18n^="#ad"]))
2024-03-13 14:28:53 -04:00
Raymond Hill
710d8c6494
Import translation work from https://crowdin.com/project/ublock
2024-03-12 10:08:22 -04:00
Raymond Hill
2c9ab8ee04
Fix the salvaging of rule ids
2024-03-11 22:22:57 -04:00
Raymond Hill
633135745f
Need new `assets.son` file for next release
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3154
2024-03-11 18:41:18 -04:00
Raymond Hill
0332bf163c
Import translation work from https://crowdin.com/project/ublock
2024-03-11 13:29:30 -04:00
Raymond Hill
d5c359d411
Import translation work from https://crowdin.com/project/ublock
2024-03-07 13:09:24 -05:00
Raymond Hill
8533fa74ee
[mv3] Use EasyList lists for "Annoyances" section
2024-03-07 09:14:30 -05:00
Raymond Hill
02966afb8c
[mv3] Do not pollute browser console in stable release versions
2024-03-06 12:46:12 -05:00
Raymond Hill
f18d62ee4c
Import translation work from https://crowdin.com/project/ublock
2024-03-05 08:11:39 -05:00
Raymond Hill
c7a9bcb7b2
Import translation work from https://crowdin.com/project/ublock
2024-03-04 11:38:55 -05:00
Raymond Hill
0a72745f9c
Import translation work from https://crowdin.com/project/ublock
2024-03-03 20:28:07 -05:00
Raymond Hill
aac88ac766
Import translation work from https://crowdin.com/project/ublock
2024-03-03 14:30:30 -05:00
Raymond Hill
09bba3199e
Import translation work from https://crowdin.com/project/ublock
2024-02-29 09:48:01 -05:00
Raymond Hill
fcc77e7c92
[mv3] Add ability to manually add filters to a ruleset
2024-02-25 20:39:21 -05:00
Raymond Hill
4af57e3e60
Import translation work from https://crowdin.com/project/ublock
2024-02-17 09:34:41 -05:00
Raymond Hill
7e00046b8e
[mv3] Salvage rule ids for all rulesets
2024-02-15 08:02:46 -05:00
Raymond Hill
8d47eac6e6
[mv3] Indent rulesets with fewer rules
2024-02-14 15:48:59 -05:00
Raymond Hill
f2d7413a42
[mv3] Reuse rule ids across release where possible
...
This is to reduce the diff size of rulesets in new
releases. Beside smaller diff size, this also makes it
easier to investigate rule changes across releases.
2024-02-14 14:27:36 -05:00
Raymond Hill
a7786a0a32
Import translation work from https://crowdin.com/project/ublock
2024-02-13 15:36:10 -05:00
Raymond Hill
0e8ff10e92
[mv3] Mind service workers for sites in "no filtering" mode
...
Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/114
2024-01-31 09:59:45 -05:00
Raymond Hill
be1f938c17
[mv3] Adjust as per changes in uBO base
2024-01-26 14:51:50 -05:00
Raymond Hill
c11db790ff
Import translation work from https://crowdin.com/project/ublock
2024-01-25 12:49:32 -05:00
Raymond Hill
f1889b02ee
[mv3] Fix conversion of `:xpath` procedural filters
...
Procedural filters with `:xpath` operator were silently rejected
at conversion time because the parser was failing to evaluate the
xpath expression due to the absence of a `document` object in
nodejs.
If `document` object is not present, the parser will assume the
xpath expression is valid.
2024-01-22 10:57:48 -05:00
Raymond Hill
3d576603c4
[mv3] `uritransform` cannot be converted to DNR
2024-01-21 14:32:14 -05:00
Raymond Hill
101cef44d2
Import translation work from https://crowdin.com/project/ublock
2024-01-16 08:49:52 -05:00
Raymond Hill
a605f13e63
Import translation work from https://crowdin.com/project/ublock
2024-01-14 09:58:34 -05:00
Raymond Hill
c03c23d962
Import translation work from https://crowdin.com/project/ublock
2024-01-12 12:00:55 -05:00
Raymond Hill
010cd3f9e0
Import translation work from https://crowdin.com/project/ublock
2024-01-10 12:59:09 -05:00
Raymond Hill
1ea1ff7f4f
Import translation work from https://crowdin.com/project/ublock
2024-01-01 10:30:57 -05:00
Raymond Hill
26f45e1fdf
Import translation work from https://crowdin.com/project/ublock
2023-12-23 17:45:36 -05:00
Raymond Hill
462e8fe917
Import translation work from https://crowdin.com/project/ublock
2023-12-19 12:04:22 -05:00
Raymond Hill
1a27f6a6cd
Import translation work from https://crowdin.com/translate/ublock
2023-12-14 10:36:18 -05:00
Raymond Hill
acc2950736
[mv3] Fine tuning ruleset output
2023-12-11 09:29:59 -05:00
Raymond Hill
af0a3f4abb
[mv3] Have one rule per line in ruleset files
2023-12-09 11:02:20 -05:00
Raymond Hill
e789a6b0c5
Import translation work from https://crowdin.com/project/ublock
2023-12-08 10:19:18 -05:00
Raymond Hill
b8b4193f15
Import translation work from https://crowdin.com/project/ublock
2023-12-04 17:06:06 -05:00
Raymond Hill
a969a672e0
Change official description in source code top comment
2023-12-04 12:10:34 -05:00
Raymond Hill
aa584d750b
Import translation work from https://crowdin.com/project/ublock
2023-12-04 08:13:19 -05:00
Raymond Hill
2c495487f1
Import translation work from https://crowdin.com/project/ublock
2023-12-02 12:59:05 -05:00
Raymond Hill
c16fcc1105
Import translation work from https://crowdin.com/project/ublock
2023-11-29 16:19:23 -05:00
Raymond Hill
a77c23c74f
[mv3] Improve and cleanup options page
...
Additionally, ensure the options page stay in sync with the
internal state of the extension.
2023-11-29 16:11:22 -05:00
Raymond Hill
554400f7bd
Import translation work from https://crowdin.com/project/ublock
2023-11-28 21:15:51 -05:00
Raymond Hill
d7acad6c90
[mv3] Add textarea to list/edit trusted sites
...
Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/29
2023-11-28 21:13:44 -05:00
Raymond Hill
2bd2e6a079
Import translation work from https://crowdin.com/project/ublock
2023-11-28 21:10:29 -05:00
Raymond Hill
4f07df33a1
[mv3] Remove reference to nonexistent ruleset
2023-11-28 11:02:55 -05:00
Raymond Hill
430c578978
Import translation work from https://crowdin.com/project/ublock
2023-11-27 19:04:43 -05:00
Raymond Hill
f77481f740
Import translation work from https://crowdin.com/project/ublock
2023-11-20 12:47:49 -05:00
Raymond Hill
e9cab80151
Fix untranslated "Filter lists" in dashboard
2023-11-20 12:36:01 -05:00
Raymond Hill
a373efe9c0
Import translation work from https://crowdin.com/project/ublock
2023-11-13 10:34:09 -05:00
Raymond Hill
b26d421a57
Add Punjabi (pa) translation
2023-11-12 13:51:50 -05:00
Raymond Hill
ce38e6c81a
Import changes following removal of unused i18n strings
2023-11-12 13:50:40 -05:00
Raymond Hill
b201c61584
[mv3] Remove unused i18n strings
2023-11-12 13:45:46 -05:00
Raymond Hill
130c437dd3
Import translation work from https://crowdin.com/project/ublock
2023-11-11 10:55:40 -05:00
Raymond Hill
9ebed116da
Import translation work from https://crowdin.com/project/ublock
2023-11-08 19:44:33 -05:00
Raymond Hill
11ebb736ca
Import translation work from https://crowdin.com/project/ublock
2023-11-06 12:16:48 -05:00
Raymond Hill
d12d014b10
Import translation work from https://crowdin.com/project/ublock
2023-11-03 19:13:07 -04:00
Raymond Hill
904e5dff7a
Import translation work from https://crowdin.com/project/ublock
2023-10-28 07:41:18 -04:00
Raymond Hill
0b59ebf1c6
Import translation work from https://crowdin.com/project/ublock
2023-10-27 21:27:28 -04:00
Raymond Hill
c1657c2f9c
Import translation work from https://crowdin.com/project/ublock
2023-10-24 11:22:21 -04:00
Raymond Hill
6c672c99c2
Import translation work from https://crowdin.com/project/ublock
2023-10-23 09:20:59 -04:00
Raymond Hill
287f7711aa
Import translation work from https://crowdin.com/project/ublock
2023-10-21 08:19:28 -04:00
Raymond Hill
6af4494946
[mv3] Honor scriptlets' target world in Firefox
...
When the target world of a scriptlet is the ISOLATED one,
skip Blob-based injection in Firefox, as the current world
is always the ISOLATED one. This should make ISOLATED
world-based scriptlets more reliable (i.e. execute sooner)
in Firefox.
2023-10-21 07:11:12 -04:00
Raymond Hill
2e4525fe3c
Add new static network filter option: `urltransform`
...
The `urltransform` option allows to redirect a non-blocked network
request to another URL. There are restrictions on its usage:
- require a trusted source -- thus uBO-maintained lists or user
filters
- the `urltransform` value must start with a `/`
If at least one of these conditions is not fulfilled, the filter
will be invalid and rejected.
The requirement to start with `/` is to enforce that only the path
part of a URL can be modified, thus ensuring the network request
is redirected to the same scheme and authority (as defined at
https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Syntax ).
Usage example (redirect requests for CSS resources to a non-existing
resource, for demonstration purpose):
||iana.org^$css,urltransform=/notfound.css
Name of this option is inspired from DNR API:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/URLTransform
This commit required to bring the concept of "trusted source" to
the static network filtering engine.
2023-10-16 09:47:29 -04:00
Raymond Hill
fb42411efb
Add `browser_specific_settings.gecko_android` to Firefox manifests
...
Reference:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings
2023-10-11 12:32:38 -04:00
Raymond Hill
3a5606125d
Import translation work from https://crowdin.com/project/ublock
2023-10-10 10:42:14 -04:00
Raymond Hill
bd71d131a8
Catch unhandled exceptions
...
Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/77
2023-10-05 11:25:28 -04:00
Raymond Hill
7416340144
Prune rules with invalid regex-based filter for all realms
...
Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/77
2023-10-03 10:51:47 -04:00
Raymond Hill
b95c90ba7c
Import translation work from https://crowdin.com/project/ublock
2023-09-22 09:36:01 -04:00
Raymond Hill
d005e3f3ac
[mv3] Fix glitchy popup panel when width increases
...
Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/66
2023-09-16 12:23:47 -04:00
Raymond Hill
ee6de37b6e
[mv3] Rework dashboard to avoid usage of `iframe`
...
Related issue:
https://github.com/uBlockOrigin/uBOL-home/issues/67
2023-09-16 11:46:39 -04:00
Raymond Hill
ba8820fe31
Import translation work from https://crowdin.com/project/ublock
2023-09-08 09:19:26 -04:00