1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-19 11:18:42 +02:00
Commit Graph

11265 Commits

Author SHA1 Message Date
Raymond Hill
bcc0803bb5
[mv3] Use specific commit URL to pick uBO repo version 2023-08-19 08:50:20 -04:00
Raymond Hill
f216dc3c4b
[mv3] Create releases in uBOL-issues repo 2023-08-19 07:52:44 -04:00
Raymond Hill
857abb380b
[mv3] Add support for converting ^responseheader() filters to DNR
Additionally, finalize versioning scheme for uBOL. Since most updates
will be simply related to update rulesets, the version will from now
on reflects the date at which the extension package was created:

  year.month.day.minutes

So for example:

  2023.8.19.690
2023-08-19 07:48:14 -04:00
Raymond Hill
eb235404bd
Use 'wasm-unsafe-eval' instead of deprecated 'wasm-eval'
Reference:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src#unsafe_webassembly_execution
2023-08-18 10:01:08 -04:00
Raymond Hill
2bbad0c692
Make permissions= as a modifier in logger 2023-08-17 17:11:47 -04:00
Raymond Hill
dde246f202
Do not issue extraneous doc separators in logger 2023-08-17 09:28:29 -04:00
gorhill
d9b338c8bc Update build log file
Files changed:
M	dist/mv3/log.txt
2023-08-15 14:26:39 +00:00
Raymond Hill
17ae7f3459
[mv3] Prepare new uBO Lite version to fix regression 2023-08-15 10:23:09 -04:00
Raymond Hill
541ccd3216
Make Firefox dev build auto-update 2023-08-15 10:21:28 -04:00
Raymond Hill
da0467365a
New revision for dev build 2023-08-15 10:13:15 -04:00
Raymond Hill
fbc7a0e0ae
Properly serialize CSS combinators according to position in selector
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/2778

Regression from:
bb41d9594f

The regression occurred because the modified code made the assumption
that a leading combinator would never be preceded by whitespace, while
the parser didn't prevent this.

The parser has been fixed to ensure there is never a leading
whitespace in a selector.
2023-08-15 10:07:42 -04:00
Raymond Hill
79cf5f574c
Make Firefox dev build auto-update 2023-08-14 13:45:39 -04:00
Raymond Hill
063581dae0
New revision for dev build 2023-08-14 13:40:17 -04:00
Raymond Hill
2a6c1d30b4
Fix regression in vAPI.warSecret guard code
Related commit:
https://github.com/gorhill/uBlock/commit/bf591d93fb
2023-08-14 13:39:27 -04:00
Raymond Hill
74fa4f9e0e
Make Firefox dev build auto-update 2023-08-14 13:16:34 -04:00
Raymond Hill
5540b1aab5
New revision for dev build 2023-08-14 13:10:36 -04:00
Raymond Hill
62f2a3e68d
Fix broken mapping between scriptlet aliases and canonical name
Related commit:
bf591d93fb
2023-08-14 13:09:19 -04:00
Raymond Hill
c32c39fa6b
Make Firefox dev build auto-update 2023-08-14 10:21:01 -04:00
Raymond Hill
88a0c2dabb
New revision for dev build 2023-08-14 10:13:08 -04:00
Raymond Hill
bf591d93fb
Imrpove no-xhr-if scriptlet
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/2773

The `randomize` paramater introduced in https://github.com/gorhill/uBlock/commit/418087de9c
is now named `directive`, and beside the `true` value which is meant
to respond with a random 10-character string, it can now take the
following value:

  war:[web_accessible_resource name]

In order to mock the XHR response with a web accessible resource. For
example:

  piquark6046.github.io##+js(no-xhr-if, adsbygoogle.js, war:googlesyndication_adsbygoogle.js)

Will cause the XHR performed by the webpage to resolve to the content
of `/web_accessible_resources/googlesyndication_adsbygoogle.js`.

Should the resource not exist, the empty string will be returned.
2023-08-14 10:03:50 -04:00
Raymond Hill
c92cdd5818
Make Firefox dev build auto-update 2023-08-13 13:36:04 -04:00
Raymond Hill
53fd3039a4
New revision for dev build 2023-08-13 13:30:35 -04:00
Raymond Hill
4feb59435a
Typo 2023-08-13 13:28:02 -04:00
Raymond Hill
418087de9c
Improve no-xhr-if scriptlet
Now support AdGuard's `randomize` parameter. If `true`,
the scriplet will generate a random 10-character string
to be returned as the response.

Reference:
https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#prevent-xhr

AdGuard's `prevent-xhr` also support `length:n-m` form,
but since I do not see it being used, for now it's not
supported in uBO's `no-xhr-if`.

Additionally, the scriptlet will now honor `responseType` and
return the proper response type accordingly.
2023-08-13 13:23:41 -04:00
gorhill
21fe1c2df8 Update build log file
Files changed:
M	dist/mv3/log.txt
2023-08-12 23:41:30 +00:00
Raymond Hill
be7f277251
Fix link to package in update.json 2023-08-12 09:02:25 -04:00
gorhill
a7387818d1 Update build log file
Files changed:
M	dist/mv3/log.txt
2023-08-12 12:09:12 +00:00
Raymond Hill
376bddb0ff
Update README.md 2023-08-12 08:06:31 -04:00
Raymond Hill
f049aea65e
Provide instructions on how to build uBO Lite
Required by AMO when submitting an extension to be hosted on AMO.
2023-08-12 08:02:42 -04:00
Raymond Hill
f20f2bbc77
Update mv3.yml 2023-08-12 07:50:06 -04:00
gorhill
44f3bea4c3 Update build log file
Files changed:
M	dist/mv3/log.txt
2023-08-12 11:02:32 +00:00
Raymond Hill
c4d324362f
Make Firefox dev build auto-update 2023-08-11 20:50:45 -04:00
gorhill
5e9d9f0ddd Update build log file
Files changed:
M	dist/mv3/log.txt
2023-08-12 00:46:44 +00:00
Raymond Hill
a9a78d415d
[mv3] Various approach to minimize DNR ruleset file
Related issue:
https://github.com/mozilla/addons-server/issues/4717
2023-08-11 20:42:03 -04:00
gorhill
9d696998c7 Update build log file
Files changed:
M	dist/mv3/log.txt
2023-08-11 22:23:22 +00:00
gorhill
8f49c74ad7 Update build log file
Files changed:
M	dist/mv3/log.txt
2023-08-11 21:58:43 +00:00
Raymond Hill
3d60d1bde4
Comment 2023-08-11 17:55:29 -04:00
Raymond Hill
bb41d9594f
[mv3] Use workaround to inject scriptlets in Firefox
Additionally:

Use `export UBO_VERSION=local` at the console to build MV3 extension using
current version of uBO code base. By default, the version is taken from
`./platform/mv3/ubo-version' and usually set to last stable release.
2023-08-11 13:22:25 -04:00
Raymond Hill
5ec0550581
Make Firefox dev build auto-update 2023-08-10 13:41:31 -04:00
Raymond Hill
115f9d43d0
New revision for dev build 2023-08-10 13:34:26 -04:00
Raymond Hill
cbadfe05ee
Remove unused import 2023-08-10 13:31:52 -04:00
gorhill
0b0451f50f Update build log file
Files changed:
M	dist/mv3/log.txt
2023-08-10 17:20:09 +00:00
Raymond Hill
2d32505045
Build uBO Lite on top of stable release of uBO 2023-08-10 13:16:35 -04:00
Raymond Hill
e295822f93
Build uBO Lite on top of stable release of uBO 2023-08-10 13:08:15 -04:00
Raymond Hill
79ed0c76cb
Use non-normalized URL for reload/report operations
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/2774
2023-08-10 12:10:19 -04:00
Raymond Hill
7bcc340ab0
Add commented keywords to googlesyndication_adsbygoogle.js scriptlet
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/2773
2023-08-10 09:54:58 -04:00
Raymond Hill
ef865bea19
Add more info to logged output 2023-08-09 11:18:04 -04:00
Raymond Hill
cfac880cf5
Improve logging abilities of object-prune.fn 2023-08-09 11:05:53 -04:00
Raymond Hill
ec82dec757
Make Firefox dev build auto-update 2023-08-09 09:41:18 -04:00
Raymond Hill
e34f82f3df
New revision for dev build 2023-08-09 09:30:30 -04:00