Greasy Fork 还支持 简体中文。

Phind.com improved printing

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

  1. // ==UserScript==
  2. // @name Phind.com improved printing
  3. // @name:de Phind.com verbesserte Druckansicht
  4. // @namespace https://meinebasis.de
  5. // @version 0.1
  6. // @description This script adjusts the css styles for printing so every useful content is visible and readable.
  7. // @description:de Mit diesem Script wird die Druckansicht für phind.com optimiert, sodass alle nützlichen Inhalte angezeigt und lesbar werden.
  8. // @author Finomosec
  9. // @match https://phind.com/*
  10. // @match https://www.phind.com/*
  11. // @grant none
  12. // @license MIT
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. const printCSS = `
  17. @media print {
  18. .phind-logo,
  19. .header-gradient,
  20. .followup-textarea-container,
  21. .thoughts-card,
  22. .flex.flex-row.space-x-4.mt-2.text-tertiary /* thumb up/down, etc. */,
  23. body > div.h-screen > div:nth-child(3),
  24. .callout-tip {
  25. display: none !important;
  26. }
  27. .chat-question {
  28. font-size: 1.5rem!important;
  29. -webkit-line-clamp: none!important;
  30. }
  31. }
  32. aside, body > div.h-screen > div:last-child, body > div.h-screen > div:first-child {
  33. display: none!important;
  34. }
  35. .sidebar-main-content {
  36. padding: 1rem!important;
  37. }
  38. `;
  39.  
  40. const styleSheet = document.createElement('style');
  41. styleSheet.textContent = printCSS;
  42. document.head.appendChild(styleSheet);
  43. })();