Repolode
houliabc

houliabc/bilibili-search-purify

A Tampermonkey userscript that filters Bilibili search results to hide videos whose titles don't match the query and clickbait or low-quality content.

Stars
256
Forks
3
Open issues
0
Last commit
3 months ago

What is it?

Bilibili Search Purify is a browser userscript for Tampermonkey that cleans up Bilibili's search results pages. When a search returns videos whose titles do not contain the search keywords, the script hides them, which targets the unrelated recommendations that often appear in search results.

Beyond keyword matching, the script applies a built-in set of regular-expression blocklists covering suggestive content, exaggerated clickbait titles, and meaningless memes. Blocked UP uploaders can also be filtered by name. Filtering runs as the page renders, using requestAnimationFrame together with a MutationObserver, so matching videos are removed without briefly flashing on screen. It also keeps working through Bilibili's infinite scroll and pagination.

To customize the filters, you edit the BLACKLIST_WORDS regex array and the BLACKLIST_UP_NAMES list inside the script in the Tampermonkey dashboard. The script is distributed through GreasyFork and released under the MIT license.

Key features

  • 01Hides search results whose titles don't contain the query keywords.
  • 02Blocks videos matching built-in regex lists for suggestive, clickbait, and meme content.
  • 03Filters out videos from user-defined blocked UP uploaders.
  • 04Filters during rendering to avoid videos appearing and then disappearing.
  • 05Keeps filtering active through infinite scroll and pagination.

Use cases

  • Searching Bilibili for tutorials or study material without off-topic recommendations.
  • Reducing clickbait and low-quality videos in search results.
  • Hiding content from specific uploaders you don't want to see.

Quick start

  1. 1

    Install the Tampermonkey browser extension

  2. 2

    Install the script from the GreasyFork link in the README

Things to know

  • Strict title matching can hide relevant videos whose titles do not contain the exact search words.
  • Blacklist rules are built into the script and must be edited by hand in Tampermonkey to customize.

In collections

Topics

FAQ

What is bilibili-search-purify?
A Tampermonkey userscript that filters Bilibili search results to hide videos whose titles don't match the query and clickbait or low-quality content. Bilibili Search Purify is a browser userscript for Tampermonkey that cleans up Bilibili's search results pages. When a search returns videos whose titles do not contain the search keywords, the script hides them, which targets the unrelated recommendations that often appear in search results.
Is bilibili-search-purify free to use? What license does it have?
bilibili-search-purify is open source under the MIT license. Check the license terms before using it in commercial products.
Is bilibili-search-purify still maintained?
Updated within 6 months. The last commit to bilibili-search-purify was on Aug 6, 2026.
What can I use bilibili-search-purify for?
Searching Bilibili for tutorials or study material without off-topic recommendations. Reducing clickbait and low-quality videos in search results. Hiding content from specific uploaders you don't want to see.
How do I install bilibili-search-purify?
Install the Tampermonkey browser extension Install the script from the GreasyFork link in the README
Where can I get bilibili-search-purify?
The source code and installation instructions are on GitHub: https://github.com/houliabc/bilibili-search-purify

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects