Replies: 2 comments
-
AdguardTeam/Scriptlets#183 - maybe need follow these. |
Beta Was this translation helpful? Give feedback.
0 replies
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to remove any element of an array based on the one of its child.
This works:
##+js(json-prune, mailListElements.2 , mailListElements.2.rawData.promotext)
but this doesn't:
##+js(json-prune, mailListElements.[] , mailListElements.[].rawData.promotext)
I don't want to do this:
##+js(json-prune, mailListElements.[].* , mailListElements.[].rawData.promotext)
because it leaves an empty object in that array element and the page's script doesn't like it.
Is it at all possible without using the array index? Fortunately, ads in this array are placed in fixed position.
Beta Was this translation helpful? Give feedback.
All reactions