Replies: 3 comments
-
For the sidebar collapsing, not the best solution, but this should work-ish... // ==UserScript==
// @name DeepSeek Chat Expander
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Makes DeepSeek chat interface fully wide and responsive
// @author You
// @match https://chat.deepseek.com/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(`
/* Text input field */
#chat-input {
width: 100% !important;
max-width: none !important;
}
/* Footer disclaimer */
div:has(> div:contains("AI-generated")) {
max-width: none !important;
width: 100% !important;
padding: 0 20px !important;
}
* {
box-sizing: border-box !important;
max-width: none !important;
}
`);
// Wait for the DOM to fully load
window.addEventListener('load', function() {
// Use JavaScript to find the parent div
document.querySelectorAll('div').forEach(div => {
// Check if the div has exactly two classes
if (div.classList.length !== 2) {
return; // Skip divs that don't have exactly two classes
}
// Check if the second child exists and has display: none
const secondChild = div.children[1];
if (secondChild && window.getComputedStyle(secondChild).display === 'none') {
// Generate a CSS rule for this div
const css = `
div.${div.classList[0]}.${div.classList[1]} {
width: 68px;
}
`;
// Inject the CSS into the document
const style = document.createElement('style');
style.textContent = css;
document.head.appendChild(style);
console.log('CSS applied to:', div);
}
});
});
})(); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for sharing! I'll try to make one when I have the time |
Beta Was this translation helpful? Give feedback.
0 replies
-
@panosru Here's "my" Deekseek script, with LLMs doing most of the work. It provides two menu options to customize the width and to enable/disable justification. I'm using similar scripts for multiple sites now, including Copilot, Grok, HuggingChat, Qwen Chat, Reddit (based on Reddit++) etc.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I love your extension and frankly speaking, I'm in disbelief that ChatGPT doesn't do that by default (especially for us with wide monitors). Since we have a new strong "kid" on the block, I would love to have a similar extension (preferably using Tampermonkey) that would support DeepSeek as well. For now, I have this user script which seems to be working fine and I'm sharing it here in case others may find it useful.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions