Skip to content

Instantly share code, notes, and snippets.

@mary-ext
Last active February 14, 2025 06:22
Show Gist options
  • Save mary-ext/6470381c9d4c44185d9320b869a090c3 to your computer and use it in GitHub Desktop.
Save mary-ext/6470381c9d4c44185d9320b869a090c3 to your computer and use it in GitHub Desktop.
block Bluesky's trending and suggestions
bsky.app##+js(user-bsky-suggestions-block.js)
main.bsky.dev##+js(user-bsky-suggestions-block.js)
const _fetch = globalThis.fetch;
globalThis.fetch = function (req, init) {
if (req instanceof Request) {
const url = new URL(req.url);
switch (url.pathname) {
case '/xrpc/app.bsky.unspecced.getTrendingTopics':
return Response.json({ suggested: [], topics: [] });
case '/xrpc/app.bsky.actor.getSuggestions':
return Response.json({ actors: [] });
}
}
return _fetch.call(this, req, init);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment