Civitai Better Model Search

Adds a floating search panel to Civitai with saved filters, infinite scroll, and No BS Unintuitive Filters.

作者
AndroidXL
今日安裝
0
安裝總數
11
評價
0 0 0
版本
1.0
建立日期
2025-09-11
更新日期
2025-09-11
尺寸
23.9 KB
授權條款
GNU GPLv3
腳本執行於

Civitai Advanced Search Helper

This is a Tampermonkey userscript that reinvented Civitai Model Search to bypass client-side model filter restrictions, especially with the hiding of certain models with X, and XXX filters on by querying the API itself.

Features

  • Floating UI Panel: Access the search panel from any page on Civitai via a discreet floating button (on the bottom right).
  • Dark Mode Interface: The entire panel is styled in a comfortable dark theme that blends seamlessly with Civitai's native dark mode.
  • Comprehensive Filtering: Filter by an extensive list of model types, base models, categories, checkpoint types, and file formats using convenient, clickable tags.
  • Advanced Sorting: Sort results by Relevancy, Downloads, Ratings, Likes, Comments, Favorites, Buzz, or Newest.
  • Infinite Scroll: Automatically loads more results as you scroll to the bottom of the list.
  • Custom Headers: Power users can provide their own raw HTTP headers (copied from browser dev tools) to ensure requests are authenticated correctly.
  • Persistent State: The script remembers your last search query, all selected filters, and your chosen sort order, so you can pick up right where you left off.
  • Safe & Scoped: All CSS is fully scoped to the script's UI, ensuring it never interferes with or breaks the main Civitai website.

Installation & Setup

Follow these three steps to get the script up and running.

1. Install a Userscript Manager

You need a browser extension to manage userscripts. The most popular one is Tampermonkey.

2. Install the Script

  • Install from the current greasy fork page, by clicking Install Script.

3. Configure Your Authorization Token

The script needs your personal Civitai API token to make authenticated requests. Without it, your searches will fail.

  1. Go to civitai.com and make sure you are logged in.
  2. Open your browser's Developer Tools (usually by pressing F12 or right-clicking the page and selecting "Inspect").
  3. Go to the Network tab in the Developer Tools.
  4. Perform any search on the Civitai website (e.g., search for "style"). This will generate network traffic.
  5. In the Network tab's filter bar, type /multi-search to find the search API request.
  6. Click on the multi-search request that appears.
  7. In the new pane that opens, find the Request Headers section.
  8. Copy the following:

Request Headers Example

  1. Paste it into the Request Headers section (scrolling all the way down) inside the script's window (after you click the button on the bottom right in civit.

Request Headers Area in Script

  1. Now you are good to go to use Search without any of the filter BS!

Security Warning: Your Authorization token is like a password. Do not share it with anyone. The script saves it locally on your computer and never sends it anywhere except directly to Civitai's official API.

How to Use

  1. Open the Panel: Navigate to any page on Civitai.com. Click the filter icon in the bottom-right corner of the screen.
  2. Enter a Query: Type what you're looking for into the main search bar at the top of the panel.
  3. Apply Filters: Use the sidebar on the left to refine your search. Click on any of the filter tags (e.g., "LORA", "Pony", "Character") to select them. You can select multiple filters from multiple categories.
  4. Change Sort Order: Use the "Sort models by" dropdown to change the ordering of the results.
  5. Run Search: Click the "Search" button.
  6. Browse Results: The results will appear on the right in a grid of cards. Scroll down to automatically load more results.
  7. Close the Panel: Click the × button in the top-right corner or click on the dark backdrop outside the panel.

Technical Details

  • API Endpoint: The script communicates with Civitai's Meilisearch API at https://search-new.civitai.com/multi-search.
  • Storage: Your custom headers and last-used filters are saved locally in your browser using Tampermonkey's GM_setValue and GM_getValue functions.
  • Cross-Origin Requests: The script uses GM_xmlhttpRequest to bypass Cross-Origin Resource Sharing (CORS) restrictions, which is necessary for a userscript to call an external API.

License

This script is released under the GNU GPLv3 License.