FiltersCompiler icon indicating copy to clipboard operation
FiltersCompiler copied to clipboard

Incorrect conversion on UBO syntax of json-prune-fetch-response.js and json-prune-xhr-response.js

Open Alex-302 opened this issue 5 months ago • 1 comments

The rules in UBO suntax were incorrectly converted

philo.com##+js(json-prune-fetch-response, periods.[-].eventStreams.0.id, , propsToMatch, /manifestv2)
philo.com##+js(json-prune-xhr-response, periods.[-].eventStreams.0.id, , propsToMatch, /manifestv2)

https://github.com/gorhill/uBlock/wiki/Resources-Library#json-prune-fetch-responsejs-

to

philo.com#%#//scriptlet('ubo-json-prune-fetch-response', 'periods.[-].eventStreams.0.id', '', 'propsToMatch', '/manifestv2')
philo.com#%#//scriptlet('ubo-json-prune-xhr-response', 'periods.[-].eventStreams.0.id', '', 'propsToMatch', '/manifestv2')

Correct result - without 'propsToMatch'

philo.com#%#//scriptlet('json-prune-xhr-response', 'periods.[-].eventStreams.0.id', '', '/manifestv2')
philo.com#%#//scriptlet('json-prune-fetch-response', 'periods.[-].eventStreams.0.id', '', '/manifestv2')

Alex-302 avatar May 21 '25 14:05 Alex-302