Skip to content

Instantly share code, notes, and snippets.

@mary-ext
Created January 1, 2025 09:09
Show Gist options
  • Save mary-ext/6afe78480cb4e1ed1a8853c2a9c6def5 to your computer and use it in GitHub Desktop.
Save mary-ext/6afe78480cb4e1ed1a8853c2a9c6def5 to your computer and use it in GitHub Desktop.
make bluesky good ublock filter
! remove `session_id` tracking parameter from videos
!
! ideally this would've been a redirect from `video.bsky.app/watch/<did>/<cid>/playlist.m3u8`
! to `video.cdn.bsky.app/hls/<did>/<cid>/playlist.m3u8`, as the latter is the actual CDN while
! the former is the middleware, however:
!
! - the raw playlist will not contain webvtt, that's added in by the middleware
! - ublock doesn't have a rule that allows redirecting to non-local neutered resource
!
||video.bsky.app$removeparam=session_id
! assume `US` to disable regional moderation labelers
!
! currently only Brazil and Germany is affected by this, but might as well.
! it's worth noting that blocking the route will only make the app apply *all* labeler.
!
||bsky.app/ipcc$replace=/(?<="countryCode":").+?(?=")/US/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment