Google News Layout Adjustments

Remove column gaps and restore full article previews in Google News

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

// ==UserScript==
// @name        Google News Layout Adjustments
// @description Remove column gaps and restore full article previews in Google News
// @match       https://www.google.com/*
// @run-at      document-start
// @version 0.0.1.20250503145658
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function() {
  const css = `
    .UFQ0Gb {
      column-gap: 0 !important;
    }

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

    .SoAPf .n0jPhd,
    .SoAPf .GI74Re {
      display: block !important;
      -webkit-line-clamp: unset !important;
      -webkit-box-orient: unset !important;
      overflow: visible !important;
      text-overflow: unset !important;
      white-space: normal !important;
    }
  `;
  const style = document.createElement('style');
  style.textContent = css;
  document.head.appendChild(style);
})();