Brave css

a

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Brave css
// @description a
// @match       https://search.brave.com/*
// @run-at      document-start
// @version 0.0.1.20260126130853
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function () {
    const css = `
* {
  gap: unset !important;
  overflow-wrap: anywhere !important;
}

*:not(#primary-tabs *) {
  white-space: revert !important;
}

/* Disable WebKit line clamping */
[class*="line-clamp"] {
  -webkit-line-clamp: none !important;
}

/* Ensure result descriptions aren’t hidden */
.desc {
  display: block !important;
}

.result-content.svelte-16hzhkl {
  display: block;
}

/* Allow title wrapping normally
    .title.svelte-yo6adg {
      white-space: normal !important;
    }*/

.title {
  white-space: revert !important;
}

aside {
  display: none !important;
}

a:has(> div.image-wrapper) {
  display: inline-block !important;
}
  `;
    const style = document.createElement('style');
    style.textContent = css;
    document.head.appendChild(style);
})();