Bing News Minimal Cleanup

Remove left margin, hide logo, cap captions, restore full text, remove padding, and clear background color

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        Bing News Minimal Cleanup
// @description Remove left margin, hide logo, cap captions, restore full text, remove padding, and clear background color
// @match       https://www.bing.com/news*
// @run-at      document-start
// @version 0.0.1.20250504012739
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function () {
  const css = `.newscontainer {
      margin-left: 0 !important;
    }

    .b_logoArea {
      display: none !important;
    }

    .caption {
      max-width: 290px !important;
    }

    /* Restore full snippets and titles */
    .newsitem .snippet,
    .newsitem .title {
      max-height: none !important;
      display: block !important;
    }

    /* Remove padding inside news cards */
    .newsitem .news-card-body {
      padding: 0 !important;
      display: flex !important;
      flex-direction: column-reverse !important;
    }

    /* Clear background in dark mode news items */
    body.b_dark .newsitem {
      background-color: transparent !important;
    }

    /* Revert title color in dark mode back to default */
    body.b_dark .newsitem .title {
      color: revert !important;
    }

    .newsitem .image {
      float: none !important;
      margin: 0 !important;
    }

    `;
  const style = document.createElement('style');
  style.textContent = css;
  document.head.appendChild(style);
})();