Brave Search – Disable WebKit Line Clamp & Show Descriptions

Remove -webkit-line-clamp truncation and ensure Brave Search result descriptions are visible

当前为 2025-05-03 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Brave Search – Disable WebKit Line Clamp & Show Descriptions
  3. // @description Remove -webkit-line-clamp truncation and ensure Brave Search result descriptions are visible
  4. // @match https://search.brave.com/*
  5. // @run-at document-start
  6. // @version 0.0.1.20250503123255
  7. // @namespace https://greasyfork.org/users/1435046
  8. // ==/UserScript==
  9.  
  10. (function() {
  11. const css = `
  12. /* Disable WebKit line clamping */
  13. [class*="line-clamp"] {
  14. -webkit-line-clamp: none !important;
  15. }
  16.  
  17. /* Ensure result descriptions aren’t hidden */
  18. .desc {
  19. display: block !important;
  20. }
  21. `;
  22. const style = document.createElement('style');
  23. style.textContent = css;
  24. document.head.appendChild(style);
  25. })();