Skip to content

Instantly share code, notes, and snippets.

@mary-ext
Last active February 14, 2025 00:22
Show Gist options
  • Save mary-ext/f3edf96f03733d08009aa7603fc7dabf to your computer and use it in GitHub Desktop.
Save mary-ext/f3edf96f03733d08009aa7603fc7dabf to your computer and use it in GitHub Desktop.
remove Bluesky's video session tracking
bsky.app##+js(user-bsky-video-tracking-block.js)
main.bsky.dev##+js(user-bsky-video-tracking-block.js)
const _open = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function (method, url, isAsync, user, password) {
// `video.bsky.app` is a middleware that adds session tracking,
// the actual files lives on `video.cdn.bsky.app`
url = url.replace('://video.bsky.app/watch/', '://video.cdn.bsky.app/hls/');
return _open.call(this, method, url, isAsync, user, password);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment