Commit Graph

7146 Commits

Author SHA1 Message Date
Raymond Hill eec31fca8b
Save magic compiled/selfie format values in cache storage
Related issue:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1588916

Due to browser behavior changes during development,
uBO can end up using obsolete cached compiled filter
lists or selfie.

Saving magic format values in the cache storage
itself ensure uBO will properly detect actually
obsolete compiled lists/selfie.
2019-11-14 08:22:28 -05:00
Raymond Hill e290cefd48
Make Firefox dev build auto-update 2019-11-12 09:37:42 -05:00
Raymond Hill 7866cd151b
New revision for release candidate 2019-11-12 09:33:14 -05:00
Raymond Hill 4d8250ab04
Ensure +/- symbols are same width in popup panel 2019-11-12 08:16:33 -05:00
Raymond Hill 5d65f6c098
Make Firefox dev build auto-update 2019-11-10 10:27:25 -05:00
Raymond Hill c47a7ba9f4
New revision for dev build 2019-11-10 10:16:14 -05:00
Raymond Hill e2fdc1b94b
Support keyboard shortcut to open popup panel
Related discussion:
- https://www.reddit.com/r/uBlockOrigin/comments/dt47s0/
2019-11-09 09:53:31 -05:00
Raymond Hill 7bf5ac0ca2
Code review of commit 4b34d29384
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/778

Related commit:
- 4b34d29384

Mind that `report-uri` or `report-to` could be
used somewhere in a hostname.
2019-11-09 07:32:19 -05:00
Raymond Hill 82f345aa86
Make Firefox dev build auto-update 2019-11-09 07:14:08 -05:00
Raymond Hill 8b66280c9a
New revision for dev build 2019-11-09 07:09:43 -05:00
Raymond Hill 004e4a3285
Support Bosnian in Opera store 2019-11-09 07:09:04 -05:00
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