DeepFix

Fixing some interface elements, which makes using DeepSeek more convenient and enjoyable

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 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         DeepFix
// @namespace    https://greasyfork.org/users/1513077-faww
// @version      1.3
// @description  Fixing some interface elements, which makes using DeepSeek more convenient and enjoyable
// @author       Faww / Fawwero
// @icon         https://registry.npmmirror.com/@lobehub/icons-static-png/1.64.0/files/dark/deepseek-color.png
// @match        https://chat.deepseek.com/*
// @license      MIT
// @run-at       document-end
// @grant        none
// ==/UserScript==


(function() {
    'use strict';
    const fixTables = () => {
        document.querySelectorAll('table').forEach(table => {
            table.style.width = "100%";
            table.style.maxWidth = "100%";
        });
    };
    const fixPad = () => {
        document.querySelectorAll('._0f72b0b').forEach(el => {
            el.style.padding = '0 calc((100% - var(--message-list-max-width)) / 3)';
        });
    };

    const runAll = () => { fixTables(); fixPad(); };

    runAll();

    const observer = new MutationObserver(runAll);
    observer.observe(document.body, { childList: true, subtree: true });

})();