Prerequisites
I tried to reproduce the issue when...
Description
I have two JSON filters which work on their own
www.pixiv.net##+js(json-edit-fetch-response, v2:$.body.illusts)
www.pixiv.net##+js(json-edit-fetch-response, v2:$.body.manga)
In the JSONPath tool, if I combine said filters together with brackets it appears to work
v2:$.body.['manga','illusts']
However, if I add this combined expression as a filter it has no effect on the page.
www.pixiv.net##+js(json-edit-fetch-response, v2:$.body.['manga','illusts'])
(It's worth noting an online evaluator lists the bracketed version as invalid JSONPath.)
A specific URL where the issue occurs.
https://www.pixiv.net/en/users/120961088
Steps to Reproduce
- Open JSONPath tool.
- Enter JSON Data from gist.
- Input expression
v2:$.body.['manga','illusts']. Observe that results are filtered.
- Add filter for
www.pixiv.net##+js(json-edit-fetch-response, v2:$.body.['manga','illusts'])
- Go to
https://www.pixiv.net/en/users/120961088. Observe that items are filtered.
Expected behavior
The results from the JSONPath tool match the results I see on the page. In other words, either
Option A: The JSONPath tool shows v2:$.body.['manga','illusts'] as an invalid filter.
Option B: Images on the linked URL are filtered, as indicated by the JSONPath tool.
Troubleshooting information
uBlock Origin: 1.72.0
Chromium: 150
filterset (summary):
network: 181105
cosmetic: 43260
scriptlet: 36329
html: 0
listset (total-discarded, last-updated):
added:
https://raw.githubusercontent.com/Stevoisiak/Annoyance-Blocklist/refs/heads/main/annoyance-blocklist.txt: 59-0, 2d.6h.22m
default:
user-filters: 1-0, never
ublock-filters: 51859-87, 2h.46m Δ
ublock-badware: 10270-27, 2h.46m Δ
ublock-privacy: 4070-4, 2h.46m Δ
ublock-unbreak: 2776-1, 2h.46m Δ
ublock-quick-fixes: 468-0, 2h.46m Δ
easylist: 85129-485, 2h.46m Δ
easyprivacy: 55927-713, 2h.46m Δ
urlhaus-1: 48080-11, 3h.46m
plowe-0: 3513-0, 4d.5h.45m
filterset (user): [array of 1 redacted]
switchRuleset:
added: [array of 1 redacted]
userSettings: [none]
hiddenSettings: [none]
supportStats:
allReadyAfter: 910 ms (selfie)
maxAssetCacheWait: 200 ms
cacheBackend: indexedDB
Prerequisites
I tried to reproduce the issue when...
Description
I have two JSON filters which work on their own
In the JSONPath tool, if I combine said filters together with brackets it appears to work
However, if I add this combined expression as a filter it has no effect on the page.
(It's worth noting an online evaluator lists the bracketed version as invalid JSONPath.)
A specific URL where the issue occurs.
https://www.pixiv.net/en/users/120961088Steps to Reproduce
v2:$.body.['manga','illusts']. Observe that results are filtered.www.pixiv.net##+js(json-edit-fetch-response, v2:$.body.['manga','illusts'])https://www.pixiv.net/en/users/120961088. Observe that items are filtered.Expected behavior
The results from the JSONPath tool match the results I see on the page. In other words, either
Option A: The JSONPath tool shows
v2:$.body.['manga','illusts']as an invalid filter.Option B: Images on the linked URL are filtered, as indicated by the JSONPath tool.
Troubleshooting information