您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically clicks retry icon when server is busy on chat.deepseek.com
- // ==UserScript==
- // @name DeepSeek Retry Clicker
- // @description Automatically clicks retry icon when server is busy on chat.deepseek.com
- // @match https://chat.deepseek.com/*
- // @version 0.0.1.20250529074528
- // @namespace https://greasyfork.org/users/1435046
- // ==/UserScript==
- (function () {
- 'use strict';
- function hasServerBusyMessage() {
- return Array.from(document.querySelectorAll('span')).some(span =>
- span.textContent.trim() === 'Server busy, please try again later.'
- );
- }
- function searchAndClickIconButton() {
- for (const div of document.querySelectorAll('div')) {
- const svgPath = div.querySelector('svg path[d^="M12 .5C18.351.5"]');
- if (svgPath) {
- const btn = div.closest('.ds-icon-button');
- if (btn) {
- btn.click();
- break;
- }
- }
- }
- }
- function init() {
- // Run once immediately
- if (hasServerBusyMessage()) {
- searchAndClickIconButton();
- }
- // Then observe all future changes
- new MutationObserver(() => {
- if (hasServerBusyMessage()) {
- searchAndClickIconButton();
- }
- }).observe(document.body, { childList: true, subtree: true });
- }
- document.addEventListener('DOMContentLoaded', init);
- })();