1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-04 18:19:38 +02:00
Commit Graph

8584 Commits

Author SHA1 Message Date
Raymond Hill
b6ed83bc5c
Add logging ability to new scriptlet no-fetch-if
When no-fetch-if scriptlet is used without argument, the
parameters passed to no-fetch-if will be output to the
console, as `uBO: fetch([...list of arguments...])`.
2020-12-11 09:28:29 -05:00
Raymond Hill
497dc9a58a
Make Firefox dev build auto-update 2020-12-11 08:56:13 -05:00
Raymond Hill
28bc132912
New revision for dev build 2020-12-11 08:51:41 -05:00
Raymond Hill
45373275db
New revision for dev build 2020-12-11 08:50:58 -05:00
Raymond Hill
ba11a70013
Add new scriptlet: no-fetch-if
The new scriptlet allows to defuse calls to fetch() by returning
a promise which always resolve to an empty response.

There is only one argument, which is a space-separated list
of conditions which must be ALL fulfilled in order for the
defusing to take place.

Each condition is a pair of property name and property value
separated by a column. Valid property names are those
documented as valid `init` options:

https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch

The URL of the fetch() is a special case and does not have to
be associated with a property name. Example of usage:

  ...##+js(no-fetch-if, method:HEAD)

Which means: defuse the call to fetch() if there is an
explicit option which contains `HEAD`. Another example:

  ...##+js(no-fetch-if, adsbygoogle.js)

Which means: defuse the call to fetch() if the URL contains
`adsbygoogle.js`. Multiple conditions can be provided:

  ...##+js(no-fetch-if, adsbygoogle.js method:HEAD)

If at least one condition does not match, the defusing will
not take place.

The string against which to match can be a literal regular
expression:

  ...##+js(no-fetch-if, /adsbygoogle.js$/ method:/HEAD|POST/)

Additonally, the following deprecated scriplets have been
removed:

- requestAnimationFrame-if.js
- setInterval-defuser.js
- setTimeout-logger.js
2020-12-11 08:29:23 -05:00
Raymond Hill
75ac182fe1
Make Firefox dev build auto-update 2020-12-10 13:21:39 -05:00
Raymond Hill
8331500cd8
New revision for dev build 2020-12-10 13:15:07 -05:00
Raymond Hill
cb71fb494c
Fix DOM watcher not reporting removal of elements
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1392

Regression from:
- 6112a68faf
2020-12-10 12:51:26 -05:00
Raymond Hill
2f841259ae
Make Firefox dev build auto-update 2020-12-10 10:15:47 -05:00
Raymond Hill
f5c77a711f
New revision for dev build 2020-12-10 10:07:25 -05:00
Raymond Hill
15afd59e1e
Fix unstyling of nodes no longer matching procedural filters
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1392

Regression from:
- 35aefed926
2020-12-10 10:03:15 -05:00
Raymond Hill
aa011e040c
Fix thunderbird build script 2020-12-10 10:00:27 -05:00
Raymond Hill
646ddff8fe
Minor changes 2020-12-10 08:26:03 -05:00
Raymond Hill
e287c940dd
Remove usage of Travis CI 2020-12-09 13:33:03 -05:00
Raymond Hill
8c6fb17ac9
Make Firefox dev build auto-update 2020-12-09 12:10:42 -05:00
Raymond Hill
777b212214
Attempt to make make GitHub Actions work 2020-12-09 12:00:59 -05:00
Raymond Hill
0415e28eae
Attempt to make make GitHub Actions work 2020-12-09 11:58:46 -05:00
Raymond Hill
95b4ecf5dd
Attempt to make make GitHub Actions work 2020-12-09 11:53:18 -05:00
Raymond Hill
ece83e5834
Attempt to make make GitHub Actions work 2020-12-09 11:47:09 -05:00
Raymond Hill
25bf99834f
Attempt to make make GitHub Actions work 2020-12-09 11:35:33 -05:00
Raymond Hill
28590e019d
Attempt to make make GitHub Actions work 2020-12-09 11:32:56 -05:00
Raymond Hill
8a754f65c1
Attempt to make make GitHub Actions work 2020-12-09 11:30:09 -05:00
Raymond Hill
22a4848d8f
Attempt to make make GitHub Actions work 2020-12-09 11:23:14 -05:00
Raymond Hill
210fbf9353
Attempt to make make GitHub Actions work 2020-12-09 11:09:14 -05:00
Raymond Hill
6691282bc2
Attempt to make make GitHub Actions work 2020-12-09 11:03:12 -05:00
Raymond Hill
f12f1d4c85
Attempt to make make GitHub Actions work 2020-12-09 10:51:34 -05:00
Raymond Hill
2d4924ab9d
Attempt to make make GitHub Actions work 2020-12-09 10:48:30 -05:00
Raymond Hill
50ba57f8fc
Attempt to make make GitHub Actions work 2020-12-09 10:47:10 -05:00
Raymond Hill
ea89baf1fd
Attempt to make make GitHub Actions work 2020-12-09 10:35:02 -05:00
Raymond Hill
392888506c
Attempt to make make GitHub Actions work 2020-12-09 10:26:06 -05:00
Raymond Hill
61b1d87b52
Attempt to make make GitHub Actions work 2020-12-09 10:16:02 -05:00
Raymond Hill
045f6a4cac
Attempt to make make GitHub Actions work 2020-12-09 10:14:36 -05:00
Raymond Hill
dca1073a9a
New revision for dev build 2020-12-09 09:10:18 -05:00
Raymond Hill
0b5f53923f
Add basic compatibility with ABP's rewrite option
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/857

The recognized resources are:
- abp-resource:blank-mp3
- abp-resource:blank-js

ABP's tokens are excluded from auto-complete so as to not
get in the way of uBO's filter list maintainers.
2020-12-09 08:16:28 -05:00
Raymond Hill
b553a66f70
Remove update_info_url to prevent Firefox from using the link
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1391
2020-12-09 07:56:32 -05:00
Raymond Hill
ec8a9dcd82
Update main.yml 2020-12-08 13:35:28 -05:00
Raymond Hill
0605b3222d
Merge branch 'master' of github.com:gorhill/uBlock 2020-12-08 13:28:49 -05:00
Raymond Hill
4c2b1493bc
Make Firefox dev build auto-update 2020-12-08 13:26:00 -05:00
Raymond Hill
958c1cf9ea
Update main.yml 2020-12-08 12:37:09 -05:00
Raymond Hill
42a9f99489
Create main.yml
This probably won't work...
2020-12-08 12:05:02 -05:00
Raymond Hill
3ff6617ea3
Fix block filter reported in the logger despite being excepted
Reported internally by @uBlock-user.

Also, fixed broken caching of `cname` exception, which forced
uBO to repeatedly evaluate whether a `cname` exception exists
when a block `cname`-cloaked request is encountered.
2020-12-08 11:16:17 -05:00
Raymond Hill
a440bcbc46
Import translation work from https://crowdin.com/project/ublock 2020-12-08 10:43:02 -05:00
Raymond Hill
5c9b9b6aa3
New revision for dev build 2020-12-08 10:41:05 -05:00
Raymond Hill
9aef41738b
Prevent non-stable uiTheme from being used in stable build
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1389

Asking people to respect the warning in the documentation
does not work, consequently the setting will be now disabled
for stable releases.
2020-12-08 10:11:34 -05:00
Raymond Hill
5d7b2918ef
Harden processing of changes in compiled list format
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1365

This commit adds the compiled magic version number to the
compiled data itself, and consequently this allows uBO
to no longer require that any given compiled list with a
mismatched format to be detected and discarded at launch
time.

Given this change, uBO no longer needs to rely on the
deletion of cached data at launch time to ensure it
won't use no longer valid compiled lists.
2020-12-08 10:00:47 -05:00
Raymond Hill
780b605bad
Fix missing magnifier in document-blocked page
Related feedback:
- e559cb73b9 (commitcomment-44887972)

Regression from:
- e559cb73b9
2020-12-07 14:32:59 -05:00
Raymond Hill
78d7094616
Make Firefox dev build auto-update 2020-12-07 13:50:56 -05:00
Raymond Hill
5d838c2098
Import translation work from https://crowdin.com/project/ublock 2020-12-07 11:28:10 -05:00
Raymond Hill
ba6339ba75
New revision for dev build 2020-12-07 11:16:18 -05:00
Raymond Hill
904aa87e2a
Fix various regression in behavior of redirect-rule=
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1388

Fixed the special `none` redirect resource no longer being
enforced.

Fixed the enforcement of `important` redirect rules over
exceptions and non-important ones.
2020-12-07 11:12:41 -05:00