Commit Graph

8556 Commits

Author SHA1 Message Date
Raymond Hill 0052dc123b
Fix `no-csp-reports` default enabled switch state
Related feedback:
- 7d90f97aa1 (commitcomment-45138096)
2020-12-15 09:36:04 -05:00
Raymond Hill 4d3e032f36
New revision for dev build 2020-12-15 09:22:06 -05:00
Raymond Hill e28c2cc3c6
Auto-complete of origin pattern for `||`-based patterns
Related commit:
- daf464b3c3
2020-12-15 08:27:59 -05:00
Raymond Hill 8060ddb283
Avoid duplicates in editor's auto-completion of origins
Related commit:
- daf464b3c3
2020-12-14 11:26:04 -05:00
Raymond Hill b22cf24bd5
Fix look-up of specific-generic filters entity-less hostnames
Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/688#issuecomment-743755956
2020-12-14 11:22:08 -05:00
Raymond Hill c45b93a25c
Make Firefox dev build auto-update 2020-12-14 08:50:19 -05:00
Raymond Hill 56305cc031
New revision for dev build 2020-12-14 08:39:58 -05:00
Raymond Hill d4425ad753
Fix bad access to hostname info from filtering context
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1398

Regression from:
- 6df32675b1
2020-12-14 08:38:30 -05:00
Raymond Hill 1ff8132216
Simplify code
Related commit:
- b779f1f7c9
2020-12-13 12:14:37 -05:00
Raymond Hill fd960e19e8
Make Firefox dev build auto-update 2020-12-12 14:45:48 -05:00
Raymond Hill 2e1e4b52eb
New revision for dev build 2020-12-12 14:40:01 -05:00
Raymond Hill 18e6f30c1c
Minor code review
Related commit:
- 6df32675b1
2020-12-12 14:38:44 -05:00
Raymond Hill b779f1f7c9
Dynamically reload 3p css when noop-ing "3rd-party" cell
This should improve usability of uBO's hard-mode
and "relax blocking mode" operations. This is the
new default behavior.

The previous behavior of forcing a reload of the
page can be re-enabled by simply setting the `3p`
bit of the advanced setting `blockingProfiles`
to 1.
2020-12-12 14:33:49 -05:00
Raymond Hill 64571a336e
Make Firefox dev build auto-update 2020-12-12 08:40:48 -05:00
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