1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-18 08:22:46 +01:00
Commit Graph

7735 Commits

Author SHA1 Message Date
Raymond Hill
e008ca6307
Import translation work from https://crowdin.com/project/ublock 2019-11-09 07:07:07 -05:00
Raymond Hill
4b34d29384
Fix regex used to detect forbidden CSP directives
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/778
2019-11-09 06:59:59 -05:00
Raymond Hill
067ef5843c
Ensure that typeof of href attribute is string
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/777
2019-11-08 09:30:59 -05:00
Raymond Hill
71f3b07eef
Make Firefox dev build auto-update 2019-11-06 07:07:14 -05:00
Raymond Hill
f7a725f7b9
New revision for dev build 2019-11-06 07:03:03 -05:00
Raymond Hill
ffae19270f
Coallesce mousemove events
Related commit:
- d1995778ff

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/615
2019-11-06 07:01:13 -05:00
Raymond Hill
eae76e3950
Make Firefox dev build auto-update 2019-11-05 13:37:48 -05:00
Raymond Hill
5b4e423219
New revision for dev build 2019-11-05 12:22:34 -05:00
Raymond Hill
d1995778ff
Allow element picker dialog to be moved around
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/615

There is a grab area under the text area, to be used
to move the dialog around.
2019-11-05 12:03:48 -05:00
Raymond Hill
1026eb4d6c
Make Firefox dev build auto-update 2019-11-04 13:50:20 -05:00
Raymond Hill
c2688b9c27
New revision for dev build 2019-11-04 13:37:53 -05:00
Raymond Hill
522249bcb5
Fix test against opener tab id in popup filtering code
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/774

Regression from:
- f204d24bf4
2019-11-04 13:34:44 -05:00
Raymond Hill
ec5191004c
Use encodeURIComponent instead of btoa
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/772
2019-11-04 13:12:40 -05:00
Raymond Hill
53304dbbc1
Make Firefox dev build auto-update 2019-11-04 09:21:00 -05:00
Raymond Hill
625b65a2ce
New revision for dev build 2019-11-04 09:17:21 -05:00
Raymond Hill
da253bf80c
Use type="search" for search input fields
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/768

So that the input fields can gain extra built-in
browser widgets useful in search fields.
2019-11-03 13:14:29 -05:00
Raymond Hill
3dc0686ba5
Make Firefox dev build auto-update 2019-11-03 09:51:38 -05:00
Raymond Hill
7d9ed86843
Import translation work from https://crowdin.com/project/ublock 2019-11-03 09:46:09 -05:00
Raymond Hill
11f74db0d2
New revision for dev build 2019-11-03 09:42:31 -05:00
Raymond Hill
085a8cdbcc
Fine tune cosmetic filtering badge-related code
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/756

As per feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/756#issuecomment-549128106
2019-11-03 09:38:36 -05:00
Raymond Hill
eff0524feb
Make Firefox dev build auto-update 2019-11-02 19:17:37 -04:00
Raymond Hill
f6a60f0e87
New revision for dev build 2019-11-02 19:09:17 -04:00
Raymond Hill
571db71318
Fine tune cosmetic filtering badge-related code
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/756

As per various feedbacks:

Added an advanced setting to keep the original behavior,
which can be potentially costly CPU-wise on some sites:

    popupCosmeticFilterBadgeSlow

Default to `false`. Set to `true` to restore original
method of surveying the number of elements hidden as
a result of applying cosmetic filtering.

As suggested by <https://github.com/gwarser>, skip
descendant of nodes which have been found to be a
match in order to potentially increase the number
of nodes which can be surveyed in the alloted time.
2019-11-02 19:03:07 -04:00
Raymond Hill
c84c0979ce
Make Firefox dev build auto-update 2019-11-02 11:48:56 -04:00
Raymond Hill
7e004c8672
New revision for devbuild 2019-11-02 11:46:28 -04:00
Raymond Hill
4afc0764d2
Fix logic mistake in last commit
Related commit:
- 6d935c8925

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/756
2019-11-02 11:45:18 -04:00
Raymond Hill
72837c9bda
Make Firefox dev build auto-update 2019-11-02 09:32:43 -04:00
Raymond Hill
638246126a
New revision for dev build 2019-11-02 09:19:27 -04:00
Raymond Hill
6d935c8925
Bail out when counting hidden elements is too expensive
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/756

When trying the number of hidden elements as a result of
cosmetic filtering for popup panel badge purpose, the
code will bail out if this takes too long, and in such
case the badge will be set to `?`, meaning the number
of hidden elements is undetermined.
2019-11-02 09:16:23 -04:00
Raymond Hill
d30c0192b3
Make Firefox dev build auto-update 2019-11-02 08:45:22 -04:00
Raymond Hill
4797bd8273
New revision for dev build 2019-11-02 08:32:59 -04:00
Raymond Hill
8acc39581c
Fine tune script tags survey scriptlet
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/756

The code used to count expensive-to-survey particular
inline javascript occurrences will be executed if and
only if no other script tags have been found in the
DOM. This is acceptable since the badge count is to be
deemed approximate (as per documentation).
2019-11-01 14:28:15 -04:00
Raymond Hill
83834f12a1
Make Firefox dev build auto-update 2019-11-01 14:07:03 -04:00
Raymond Hill
f14e5ea15d
New revision for dev build 2019-11-01 14:04:36 -04:00
Raymond Hill
987c9c1a21
Fix on-demand no-cosmetic-filtering badge when generichide in use
Related feedback:
- c090d2fde4 (commitcomment-35767596)

Mind that there might not be selectors to match as a
result of `generichide` or `no-cosmetic-filtering`.
2019-11-01 14:01:30 -04:00
Raymond Hill
2cd0d69c28
Make Firefox dev build auto-update 2019-11-01 12:48:49 -04:00
Raymond Hill
35d6785cbd
New revision for dev build 2019-11-01 12:36:03 -04:00
Raymond Hill
c090d2fde4
Count hidden elements on-demand only in popup panel
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/756

The badge value for the no-cosmetic-filtering
switch will be evaluated on-demand only, when
the user hover over the switch with the mouse
cursor.

For touch screen displays, a tap on the switch
will cause the badge to be rendered if not
already done, otherwise this will toggle the
switch as usual.
2019-11-01 12:32:34 -04:00
Raymond Hill
7c0294bd5f
Fix spurious leading/trailing wildcards with valid token
Related feedback:
- https://www.reddit.com/r/uBlockOrigin/comments/dpcvfx/

Regression from:
- 7971b22385

Leading/trailing wildcards are useless when a valid
token can be found, and in such case they need to
be removed so as to ensure the proper filter class
is used.
2019-10-31 13:46:06 -04:00
Raymond Hill
eb23c3581a
Make Firefox dev build auto-update 2019-10-31 12:57:23 -04:00
Raymond Hill
5dd57030a1
New revision for dev build 2019-10-31 12:53:33 -04:00
Raymond Hill
d21b9388f3
Fix broken csp= filters when logger is opened
Regression from:
- 7971b22385

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/761
2019-10-31 12:43:33 -04:00
Raymond Hill
7fdbf75c6c
Make Firefox dev build auto-update 2019-10-31 11:20:10 -04:00
Raymond Hill
dbb8e15ff0
New revision for dev build 2019-10-31 11:17:02 -04:00
Raymond Hill
11c56ab540
Minor fine-tuning of URL tokenizer 2019-10-31 11:15:00 -04:00
Raymond Hill
d8975ee580
Improve efficiency of per-site switches badge code
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/756

This is the code used to find out the count values
displayed as badge on the cosmetic filtering and
scripting per-site switches in the popup panel.

The issue is that document.querySelector*() -- used to
find out the number of hidden elements -- is unduly
expensive on large DOM.

The changes in this commit have focused on avoiding the
use of document.querySelector*() as much as possible.

Also, the results are cached for reuse unless DOM
mutations are detected.
2019-10-31 11:07:11 -04:00
Raymond Hill
11da758d47
Make Firefox dev build auto-update 2019-10-29 11:56:31 -04:00
Raymond Hill
d6a78d8476
New revision for dev build 2019-10-29 11:49:49 -04:00
Raymond Hill
a69b301d81
Fine-tune new bidi-trie code
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/761
2019-10-29 10:26:34 -04:00
Raymond Hill
49fb98dcb2
Make Firefox dev build auto-update 2019-10-28 14:07:12 -04:00