Commit Graph

8642 Commits

Author SHA1 Message Date
Raymond Hill 6df32675b1
Add approximate reporting of tabless network requests
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1204

Not much can be done beside reporting to tabless network
requests to all tabs for which the context is a match.

A short term local cache is used to avoid having to iterate
through all existing tabs for each tabless network request
just to find and report to the matching ones -- users
reporting having a lot of opened tabs at once is not so
uncommon.
2020-12-12 08:19:40 -05:00
Raymond Hill cc86e373ec
New revision for dev build 2020-12-11 12:35:18 -05:00
Raymond Hill 7d90f97aa1
Enable the blocking of CSP reports by default
Related issue:
- https://github.com/LiCybora/NanoDefenderFirefox/issues/196
2020-12-11 12:34:09 -05:00
Raymond Hill d0a0984ece
Make Firefox dev build auto-update 2020-12-11 10:41:08 -05:00
Raymond Hill 78cf76dd95
New revision for dev build 2020-12-11 10:36:13 -05:00
Raymond Hill 24755d4300
Fix broken alias `nostif`
Related feedback:
- ba11a70013 (r45030152)

Regression from:
- ba11a70013
2020-12-11 10:34:33 -05:00
Raymond Hill c41be5b828
Make Firefox dev build auto-update 2020-12-11 09:35:41 -05:00
Raymond Hill 286663c957
New revision for dev build 2020-12-11 09:30:43 -05:00
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