Raymond Hill
b219faf3c7
Make Firefox dev build auto-update
2023-10-18 10:51:36 -04:00
Raymond Hill
b73a0bef59
New revision for dev build
2023-10-18 10:18:55 -04:00
Raymond Hill
4dc396ff05
Fix typos in comments
2023-10-18 09:50:58 -04:00
Raymond Hill
9d3acd91b8
Support AdGuard's `[trusted-]set-cookie-reload` scriptlets
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/2881
2023-10-18 09:48:08 -04:00
Raymond Hill
5bd40b34cd
Support pairing `doc` with `urltransform`
...
Related feedback:
2e4525fe3c (commitcomment-130203742)
2023-10-18 09:06:28 -04:00
Raymond Hill
74a4772e41
Fix comment
2023-10-18 08:55:09 -04:00
Raymond Hill
b0fe6d228a
Use `@latest` instead of `@main` for jsDelivr CDN
2023-10-17 23:25:06 -04:00
Raymond Hill
b98ee0f442
Minor code review
2023-10-17 23:11:06 -04:00
Raymond Hill
31bdc9ef0d
Make Firefox dev build auto-update
2023-10-17 17:50:55 -04:00
Raymond Hill
5a471c2a01
New revision for dev build
2023-10-17 17:35:39 -04:00
Raymond Hill
51359c6585
[experimental] Add `json-stringify` scriptlet
...
Will be evaluated this current dev cycle and as a result
might be removed before next stable.
Other changes to increase code consistency.
2023-10-17 17:33:49 -04:00
Raymond Hill
c0ea5ebab5
Make Firefox dev build auto-update
2023-10-17 12:41:16 -04:00
Raymond Hill
5827f7161e
New revision for dev build
2023-10-17 12:32:05 -04:00
Raymond Hill
f34855b859
Do not consider same-creation time to be a stale status
...
Related commit:
7daf31336a
2023-10-17 12:30:06 -04:00
Raymond Hill
7daf31336a
Ignore assets older than cached version when fetching from CDNs
...
As discussed with filter list volunteers.
https://github.com/uBlockOrigin/uBlock-discussions/discussions/781#discussioncomment-7283981
2023-10-17 12:08:10 -04:00
Raymond Hill
f122ce7320
Add logging ability to `trusted-click-element`
...
If the vararg `, log, 1` is present, the scriptlet will log to
the console it's execution steps. Works only in dev build.
2023-10-16 19:53:48 -04:00
Raymond Hill
5a24fad8ad
Make fine-tuned `json-prune-[...]` scriptlets the default behavior
...
As discussed with filter list maintainers.
2023-10-16 19:36:16 -04:00
Raymond Hill
05ae51beb2
Minor code review of last commit
...
Related commit:
027c7a4fb5
2023-10-16 18:05:41 -04:00
Raymond Hill
027c7a4fb5
Support quoting scriptlet parameters with backticks
...
(In addition to in already supported single- and double-quote).
The parsing of (optionally) quoted arguments from an argument
list has been spinned off into a standalone helper in order to
be reused in other parts of the parser eventually.
2023-10-16 17:38:57 -04:00
Raymond Hill
1e4818a6e3
Make Firefox dev build auto-update
2023-10-16 11:21:00 -04:00
Raymond Hill
5f0a883475
New revision for dev build
2023-10-16 11:16:06 -04:00
Raymond Hill
c06f5e014f
Prevent redirecting when URL is not transformed
...
Related commit:
https://github.com/gorhill/uBlock/commit/2e4525fe3c
2023-10-16 11:14:12 -04:00
Raymond Hill
8b107e1bac
Make Firefox dev build auto-update
2023-10-16 10:21:22 -04:00
Raymond Hill
90e4a57062
New revision for dev build
2023-10-16 10:11:27 -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
bee64ebd90
Support pane: mark lists as obsolete only when update button is clicked
...
Lists older than 2 hours were unconditionally marked as obsolete when
opening the _Support_ pane. Those lists will now be marked as obsolete
only when the _Update now_ button in the _Support_ pane is pressed, i.e.
when launching an update cycle.
Related discussion:
https://github.com/uBlockOrigin/uBlock-discussions/discussions/781#discussioncomment-7287323
2023-10-16 07:33:38 -04:00
Raymond Hill
b1530e2659
Fix #2874 as suggested
2023-10-15 20:16:44 -04:00
Raymond Hill
763e9eb2a8
Make Firefox dev build auto-update
2023-10-15 16:51:30 -04:00
Raymond Hill
99fb888328
New revision for dev build
2023-10-15 16:41:08 -04:00
Raymond Hill
7c660b2aad
Remove stray tab
2023-10-15 16:40:35 -04:00
Raymond Hill
c0d80ac510
Fine tune `trusted-click-element` scriptlet
2023-10-15 16:14:44 -04:00
Raymond Hill
906c6072d6
Make Firefox dev build auto-update
2023-10-15 13:46:14 -04:00
Raymond Hill
349825ac08
New revision for dev build
2023-10-15 13:35:06 -04:00
Raymond Hill
c96a673338
Bring `header=` filter option out of experimental status
...
Related commits:
- bde3164eb4
- 5db8d05975
Reference documentation:
https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#header
Compatible with AdGuard's `header=` option:
https://adguard.com/kb/general/ad-filtering/create-own-filters/#header-modifier
Partially compatible with ABP's `header=` option: Not compatible if
a header value is specified, as ABP requires `=` as separator between
the header name and header value, whereas uBO and AdGuard require `:`
as separator. If no header value is present, the option becomes compatible
with ABP's syntax.
https://gitlab.com/adblockinc/ext/adblockplus/adblockplusui/-/issues/898
2023-10-15 13:17:13 -04:00
Raymond Hill
7af88b025d
Add `trusted-click-element` scriptlet
...
Implemented as per AdGuard API documentation:
https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-trusted-scriptlets.md#trusted-click-element
The current implementation in uBO does not support the `extraMatch`
argument. If the extraMatch argument is not empty, the scriptlet
will abort and do nothing.
As for the rest, it complies with the documentation.
2023-10-15 11:08:15 -04:00
Raymond Hill
9a809a8e7c
Fix comment
2023-10-15 11:06:40 -04:00
Raymond Hill
b41c4c25e3
Make Firefox dev build auto-update
2023-10-14 14:06:03 -04:00
Raymond Hill
d25306f300
Modify `manifest.json` for other platforms
...
As per 0325dcdcb4
2023-10-14 13:55:46 -04:00
Raymond Hill
006f4ed68f
New revision for dev build
2023-10-14 13:52:39 -04:00
Raymond Hill
0325dcdcb4
Add ability to update lists through links with specifically crafted URLs
...
As per discussion with uBO volunteers.
Volunteers offering support for uBO will be able to craft links with
specially formed URLs, which once clicked will cause uBO to automatically
force an update of specified filter lists.
The URL must be crafted as shown in the example below:
https://ublockorigin.github.io/uAssets/update-lists.html?listkeys=ublock-filters,easylist
Where the `listkeys` parameter is a comma-separated list of tokens
corresponding to filter lists. If a token does not match an enabled
filter list, it will be ignored.
The ability to update filter lists through a specially crafted link
is available only on uBO's own support sites:
- https://github.com/uBlockOrigin/
- https://reddit.com/r/uBlockOrigin/
- https://ublockorigin.github.io/
Additionally, a visual cue has been added in the "Filter lists" pane
to easily spot the filter lists which have been recently updated, where
"recently" is currently defined as less than an hour ago.
2023-10-14 13:41:49 -04:00
Raymond Hill
17d30343c5
Use safe Array.from() in `no-xhr-if` scriptlet
...
Related issue:
https://github.com/uBlockOrigin/uAssets/issues/20063
2023-10-14 08:03:29 -04:00
Raymond Hill
70f247d7f5
Make Firefox dev build auto-update
2023-10-13 22:05:56 -04:00
Raymond Hill
657d34c371
New revision for dev build
2023-10-13 21:54:08 -04:00
Raymond Hill
e5c1b63315
Fix overzealous matching in `(remove|replace)-node-text` scriptlets
...
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/2868
2023-10-13 21:51:13 -04:00
Raymond Hill
be60ac33c2
Make Firefox dev build auto-update
2023-10-13 21:36:11 -04:00
Raymond Hill
9bd85d4142
New revision for dev build
2023-10-13 21:25:26 -04:00
Raymond Hill
6f74df942d
Fix `no-xhr-if` scriptlet for Firefox
...
Related feedback:
https://github.com/uBlockOrigin/uAssets/issues/20063#issuecomment-1762157408
2023-10-13 21:24:21 -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
f15dff27fe
Minor code review
2023-10-10 13:30:18 -04:00
Raymond Hill
3a5606125d
Import translation work from https://crowdin.com/project/ublock
2023-10-10 10:42:14 -04:00