Greasy Fork 还支持 简体中文。

移除 DeepSeek 的生日填寫提醒與遮罩

此腳本用於移除DeepSeek的生日填寫提醒及蒙版。

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Remove DeepSeek Overlay
// @name:zh-TW   移除 DeepSeek 的生日填寫提醒與遮罩
// @name:zh-CN   移除 DeepSeek 的生日填写提醒与遮罩
// @name:ja     DeepSeekの誕生日入力リマインダーとマスクを削除
// @namespace    https://github.com/April-15/tampermonkey-scripts/blob/main/Remove_DeepSeek_Overlay.js
// @version      0.1.1
// @description  This script is used to remove DeepSeek's birthday filling reminder and mask.
// @description:zh-TW  此腳本用於移除DeepSeek的生日填寫提醒及蒙版。
// @description:zh-CN  此脚本用于移除DeepSeek的生日填写提醒和遮罩。
// @description:ja   DeepSeekの誕生日入力リマインダーとマスクを削除するスクリプトです。
// @author       April 15th
// @match        https://chat.deepseek.com/
// @icon         https://chat.deepseek.com/favicon.svg
// @grant        none
// @license      MIT
// ==/UserScript==


(function() {
    'use strict';

    function elementLoaded() {
        waitForElement("body > div.ds-modal-overlay").then(() => {
            removeElement("body > div.ds-modal-overlay");
        });
        waitForElement("body > div.ds-theme.ds-modal-wrapper").then(() => {
            removeElement("body > div.ds-theme.ds-modal-wrapper");
            const inputElement = document.querySelector("#chat-input");
            if (inputElement) {
                inputElement.focus();
            }
        });

        waitForElement("#chat-input").then(() => {
            const inputElement = document.querySelector("#chat-input");
            if (inputElement) {
                inputElement.focus();
            }
        });
    }

    function removeElement(element) {
        const element2Remove = document.querySelector(element);
        if (element2Remove) {
            element2Remove.remove();
        }
    }

    function waitForElement(selector) {
        return new Promise((resolve) => {
            const observer = new MutationObserver(() => {
                const element = document.querySelector(selector);
                if (element) {
                    observer.disconnect();
                    resolve(element);
                }
            });
            observer.observe(document.body, { childList: true, subtree: true });
        });
    }
    window.addEventListener('load', elementLoaded);
})();