DeepSeek Auto Expert

Automatically select the "expert" model on DeepSeek website.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         DeepSeek Auto Expert
// @namespace    npm/vite-plugin-monkey
// @version      0.1.0
// @author       Farhan Digital
// @description  Automatically select the "expert" model on DeepSeek website.
// @license      GPL-3.0
// @icon         https://cdn.jsdelivr.net/gh/farhandigital/deepseek-auto-expert@master/public/deepseek-logo.png
// @match        https://chat.deepseek.com/
// ==/UserScript==

(function() {
var PREFIX = "[deepseek-auto-expert]";
	var TARGET_URL = "https://chat.deepseek.com/";
	function main() {
		if (window.location.href !== TARGET_URL) {
			console.log(`${PREFIX} Not on new chat page`);
			return;
		}
		const targetElement = document.querySelector("[data-model-type=\"expert\"]");
		if (!targetElement) {
			console.log(`${PREFIX} Element not found`);
			return;
		}
		if (targetElement.getAttribute("aria-checked") === "true") {
			console.log(`${PREFIX} Element is already checked`);
			return;
		}
		targetElement.click();
	}
	setInterval(main, 500);
})();