您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically expands search results on c.Ai
// ==UserScript== // @name c.Ai Search Expander // @namespace https://greasyfork.org/users/1084087-fermion // @version 1.0 // @description Automatically expands search results on c.Ai // @author ashley // @match https://character.ai/* // @icon https://c.ai/static/images/favicon.ico // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function expandSearchResults() { const loadMoreButton = document.querySelector('.search-load-more'); if (loadMoreButton) { loadMoreButton.click(); setTimeout(expandSearchResults, 500); // Wait 0.5 seconds before checking again } } // Wait for the search results to appear, then start expanding them const observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => { if (mutation.type === 'childList' && document.querySelector('.search-load-more')) { expandSearchResults(); observer.disconnect(); // Stop observing once we've started expanding } }); }); observer.observe(document.body, { childList: true }); })();