DeepSeek Auto Expert

Automatically select the "expert" model on DeepSeek website.

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

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==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);
})();