If you want to block Gists from certain users on GitHub, you can use custom filter rules for uBlock Origin. This method will hide Gist snippets created by the specified users from appearing on the GitHub website, including on the discover page (https://gist.github.com/discover).
-
Install the uBlock Origin browser extension if you haven’t already.
-
Open uBlock Origin settings.
-
Go to the My Filters tab.
-
Add the following filter rules:
github.com##div.gist-snippet:has(a[href^="/choco-bot/"]) github.com##div.gist-snippet:has(a[href^="/DolphinOfficial/"])
-
Click on Apply Changes to save.
Once applied, all Gists created by the users choco-bot
and DolphinOfficial
will be hidden from your view, including when browsing on Discover Gists.
To block Gists from other users, simply add a new line to the filter with the username of the person you want to block. Replace USERNAME
in the example below with the GitHub username:
github.com##div.gist-snippet:has(a[href^="/USERNAME/"])