Last active
February 14, 2025 06:22
-
-
Save mary-ext/6470381c9d4c44185d9320b869a090c3 to your computer and use it in GitHub Desktop.
block Bluesky's trending and suggestions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bsky.app##+js(user-bsky-suggestions-block.js) | |
main.bsky.dev##+js(user-bsky-suggestions-block.js) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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