How to block unrelated repo “cirosantilli/china-dictatorship” from Chinese search results? #178970
-
Select Topic AreaQuestion BodyHi, when I search repositories with Chinese keywords, I always get a ton of results from this repo: It’s totally unrelated to what I’m searching for — it’s just political stuff. It really makes searching in Chinese pretty hard right now 😅 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@DBeidachazi ,its a good questions I also facing this but unfortunately, GitHub doesn’t currently provide a way to block or permanently hide a specific repository like cirosantilli/china-dictatorship from your search results but you can filter it out manually using GitHub search syntax like you use the "-repo:" filter, you can bookmark that search link and reuse it to automatically exclude that repo every time. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @DBeidachazi, Yes, you can use GitHub's advanced search syntax by excluding results with specific keywords, for example:
If your search query doesn't contain whitespace, you don't need to surround it with quotation marks:
So in your case you should use the following search syntax:
For more information, see the documentation: Understanding the search syntax. |
Beta Was this translation helpful? Give feedback.
@DBeidachazi ,its a good questions I also facing this but unfortunately, GitHub doesn’t currently provide a way to block or permanently hide a specific repository like cirosantilli/china-dictatorship from your search results but you can filter it out manually using GitHub search syntax like you use the "-repo:" filter, you can bookmark that search link and reuse it to automatically exclude that repo every time.
Or
You can use a browser extension like "uBlock Origin" or Search Filter for GitHub to hide results from specific repos automatically on the frontend.