Phind.com improved printing

This script adjusts the css styles for printing so every useful content is visible and readable.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Phind.com improved printing
// @name:de      Phind.com verbesserte Druckansicht
// @namespace    https://meinebasis.de
// @version      0.1
// @description  This script adjusts the css styles for printing so every useful content is visible and readable.
// @description:de Mit diesem Script wird die Druckansicht für phind.com optimiert, sodass alle nützlichen Inhalte angezeigt und lesbar werden.
// @author       Finomosec
// @match        https://phind.com/*
// @match        https://www.phind.com/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    const printCSS = `
        @media print {
            .phind-logo,
            .header-gradient,
            .followup-textarea-container,
            .thoughts-card,
            .flex.flex-row.space-x-4.mt-2.text-tertiary /* thumb up/down, etc. */,
            body > div.h-screen > div:nth-child(3),
            .callout-tip {
                display: none !important;
            }
            .chat-question {
                font-size: 1.5rem!important;
                -webkit-line-clamp: none!important;
            }
        }
        aside, body > div.h-screen > div:last-child, body > div.h-screen > div:first-child {
            display: none!important;
        }
        .sidebar-main-content {
            padding: 1rem!important;
        }
    `;

    const styleSheet = document.createElement('style');
    styleSheet.textContent = printCSS;
    document.head.appendChild(styleSheet);
})();