Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$jsonprune, $replace, $hls does not work with non-GET-POST HTTP methods #1743

Closed
Alex-302 opened this issue Apr 4, 2023 · 0 comments
Closed

Comments

@Alex-302
Copy link
Member

Alex-302 commented Apr 4, 2023

Related to AdguardTeam/AdguardFilters#147097

AdGuard for Windows 7.13 n7 / CL 1.11.69
Filters: user filter only
Stealth mode: disabled
Extensions: disabled
Browser: Chrome 111

Actual behavior

The rules applied to gist.githubusercontent.com, but JSON from Spotify is not modified.
Sample URL of Spotify's JSON https://gew1-spclient.spotify.com/track-playback/v1/devices/16afbb2489326b6bababc717ff95f7774e3c4b41/state

Tested rules:

  • ||spotify.com/track-playback/$xmlhttprequest,jsonprune=\$.state_machine.tracks[?(key-eq 'content_type' 'AD')]
  • ||gist.githubusercontent.com/Alex-302/*/spot.json$xmlhttprequest,jsonprune=\$.state_machine.tracks[?(key-eq 'content_type' 'AD')]
    Same with $replace rule
  • http$replace=/"content_type":"TRACK"/"content_type":"_TRACK"/ - also does not work on spotify.com

The first rule - for spotify.com
The second - for the JSON with ad - https://gist.githubusercontent.com/Alex-302/7a2bf1eb091e8daba651aa47acfa73d8/raw/397115a61b5ef6cc54362281635be0a84a365246/spot.json

Sample HAR file. Search for "content_type":"AD"
open.spotify.com.zip

@Alex-302 Alex-302 changed the title '$jsonprune' does not work on spotify.com $jsonprune does not work with non-GET-POST HTTP methods Apr 4, 2023
@Alex-302 Alex-302 changed the title $jsonprune does not work with non-GET-POST HTTP methods $jsonprune, $replace, $hls does not work with non-GET-POST HTTP methods Apr 4, 2023
Alex-302 added a commit to AdguardTeam/AdguardFilters that referenced this issue Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants