1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-23 19:03:02 +01:00
Commit Graph

10650 Commits

Author SHA1 Message Date
Raymond Hill
3c4c3767a2
Report filter list of invalid filter in logger
Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/discussions/2534
2023-03-10 06:48:57 -05:00
Raymond Hill
d7b7dea7fa
Make Firefox dev build auto-update 2023-03-09 13:51:04 -05:00
Raymond Hill
e558669d17
New revision for dev build 2023-03-09 13:42:15 -05:00
Raymond Hill
4b4ef6a60c
Rename href-from-text to href-sanitizer, add argument
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2531#issuecomment-1462389539

Usage:
- example.com##+js(href-sanitizer, a[href^="/go?to="]:not([title]))
- example.com##+js(href-sanitizer, a[href^="/go?to="][title], [title])

The second argument is the attribute from which to extract the text
to be used for the `href` attribute of the link. If the second
attribute is absent, the text content of the element will be used.
2023-03-09 13:37:06 -05:00
Raymond Hill
3b3a363dac
Make Firefox dev build auto-update 2023-03-09 09:06:02 -05:00
Raymond Hill
4676d76480
New revision for dev build 2023-03-09 09:00:20 -05:00
Raymond Hill
e123256eaf
Add experimental href-from-text scriptlet
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2531

Usage:

    example.com##+js(href-from-text, a[href^="/tracker-link?to="]

The above scriptlet will find all elements matching the selector
passed as 1st argument, and replace the `href` attribute with the
text content of the element, if all the following conditions are
met:

- The element is a link (`a`) element
- The link element has an existing `href` attribute
- The text content of the element is a valid `https`-based URL
2023-03-09 08:49:26 -05:00
Raymond Hill
7bf3f1bd20
Prevent dialog box from overflowing logger's viewport
Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/discussions/2497#discussioncomment-5250170
2023-03-09 07:11:10 -05:00
Raymond Hill
d01780d2ee
Make Firefox dev build auto-update 2023-03-08 16:41:33 -05:00
Raymond Hill
1ad67126ed
New revision for dev build 2023-03-08 16:37:04 -05:00
Raymond Hill
ccbe350d8b
Increase width of per-entry link button in logger
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2530
2023-03-08 14:28:26 -05:00
Raymond Hill
890aabaae9
Make parser take into account filterOnHeaders setting
Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1134#issuecomment-1460638431
2023-03-08 13:49:21 -05:00
Raymond Hill
bbd9470a98
Convert resource URLs into clickable links in code viewer 2023-03-08 12:31:39 -05:00
Raymond Hill
5805bb2f13
Make Firefox dev build auto-update 2023-03-08 09:46:38 -05:00
Raymond Hill
07c7564170
New revision for dev build 2023-03-08 09:39:27 -05:00
Raymond Hill
f9b03ebeac
Report unprocessed network request count in troubleshooting info
Related discussion:
- https://github.com/uBlockOrigin/uAssets/discussions/16939
2023-03-08 09:36:09 -05:00
Raymond Hill
0c9576d3e6
Show a distinct toolbar icon until filtering engines are fully initialized
Related discussion:
- https://github.com/uBlockOrigin/uAssets/discussions/16939

Until uBO's filtering engines are properly initialized, there will
be a distinct toolbar icon to help users understand that uBO may
not be fully initialized when a webpage is loaded -- often the
cause of improper filtering of trackers/ads at browser launch.
2023-03-07 16:02:09 -05:00
Raymond Hill
7038b93cee
Make Firefox dev build auto-update 2023-03-07 14:56:28 -05:00
Raymond Hill
0dbce53481
New revision for dev build 2023-03-07 13:51:21 -05:00
Raymond Hill
bd84a7c8d5
Support rendering xhr requests in new code viewer
Related commit:
- 33c437f99f
2023-03-07 13:40:52 -05:00
Raymond Hill
63d8fe524c
Make Firefox dev build auto-update 2023-03-06 18:21:53 -05:00
Raymond Hill
f4566e1db5
New revision for dev build 2023-03-06 18:10:28 -05:00
Raymond Hill
a0a23085ed
Do not generate DNR block rule for redirect= filters
DNR API does not support block-then-redirect concept, hence no
point in generating a DNR block rule for `redirect=` filters.

Additionally, better handle orphaned filter anchors (`||`, `|`).
2023-03-06 13:06:57 -05:00
gorhill
3b63fef848 Update build log file
Files changed:
M	dist/mv3/log.txt
2023-03-06 16:22:27 +00:00
gorhill
2e6cc8a36a Update build log file
Files changed:
M	dist/mv3/log.txt
2023-03-03 21:56:31 +00:00
Raymond Hill
cd21a0bb9d
MV3 implicit Rule priority is 1, not 0
Related issue:
- https://github.com/uBlockOrigin/uBOL-issues/issues/30
2023-03-03 16:52:28 -05:00
Raymond Hill
82c73199e4
Simplify parser's templating code 2023-03-03 13:49:58 -05:00
Raymond Hill
033aa9cfad
Need valid tab id for scriptlet injection 2023-03-03 12:14:36 -05:00
Raymond Hill
a60a5c2772
Fix wrong syntax color highlight in "Trusted sites" pane
Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/discussions/2521
2023-03-02 20:50:32 -05:00
Raymond Hill
cc979c900f
Make Firefox dev build auto-update 2023-03-02 17:20:57 -05:00
Raymond Hill
cd53821999
New revision for dev build 2023-03-02 17:12:59 -05:00
Raymond Hill
4ef6420f7c
Fine tune new code viewer
Remove read-only restriction -- it might be useful to
enter notes/markers/etc when investigation code flow.
2023-03-02 17:11:40 -05:00
Raymond Hill
088e90ed42
Add list for Macedonia; add languages to Persian list
Related issues:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2522
- https://github.com/AdguardTeam/AdguardFilters/pull/144318#issuecomment-1451721914
2023-03-02 17:09:32 -05:00
Raymond Hill
31fb1490b4
Make Firefox dev build auto-update 2023-03-01 12:56:36 -05:00
Raymond Hill
551d7105dd
New revision for dev build 2023-03-01 12:47:58 -05:00
Raymond Hill
2155284d8b
Fix broken code viewer
Related commit:
- 33c437f99f
2023-03-01 12:47:18 -05:00
Raymond Hill
138e6bc37f
Remove obsolete comment 2023-03-01 12:31:44 -05:00
Raymond Hill
2b3d0e757a
Make Firefox dev build auto-update 2023-03-01 11:26:47 -05:00
Raymond Hill
844d317d44
New revision for dev build 2023-03-01 11:09:29 -05:00
Raymond Hill
33c437f99f
Add source code viewer (from logger)
This commits add the ability to open html/css/script
resources from the logger, as a formatted and syntax-
highligthed document.

The goal is to make it easier for filter list authors to
investigate filter-related issues.
2023-03-01 11:04:40 -05:00
Raymond Hill
db118483c9
Support update period below 1-day
Related feedback:
- https://www.reddit.com/r/uBlockOrigin/comments/11bfwgn/how_to_update_custom_filter_lists_automatically/ja280xu/
2023-03-01 05:26:30 -05:00
Raymond Hill
7edef91437
Make Firefox dev build auto-update 2023-02-28 20:16:50 -05:00
Raymond Hill
2648df0976
New revision for dev build 2023-02-28 20:10:27 -05:00
Raymond Hill
8f32bee8b9
Restore behind-the-scene origin for docless secondary resources
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2515
2023-02-28 20:08:31 -05:00
Raymond Hill
4690885c85
Make Firefox dev build auto-update 2023-02-27 09:15:51 -05:00
Raymond Hill
9a1515744a
New revision for dev build 2023-02-27 09:09:19 -05:00
Raymond Hill
09bc4e21c7
Refine AST template's regex for hosts file entries
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2512
2023-02-27 09:07:38 -05:00
Raymond Hill
491bc87e94
Make Firefox dev build auto-update 2023-02-24 18:11:30 -05:00
Raymond Hill
bb203d9243
New revision for dev build 2023-02-24 18:04:51 -05:00
Raymond Hill
454a03a98f
Use block scope to isolate context 2023-02-24 18:02:28 -05:00