Remove column gaps and enforce max-width + full previews on Google web search only
// ==UserScript==
// @name Google Search Layout Tweaks
// @description Remove column gaps and enforce max-width + full previews on Google web search only
// @match https://www.google.com/search?*
// @exclude https://www.google.com/search?*tbm=nws*
// @run-at document-start
// @version 0.0.1.20250505105929
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==
(function () {
const css = `
#rcnt {
/*google search not news*/
column-gap: 0 !important;
}
/* Apply max-width to every search-result wrapper */
.MjjYud {
max-width: 290px !important;
}
/* 2) Remove the -webkit-line-clamp limitation on the snippet */
.VwiC3b.yXK7lf.p4wth.r025kc.hJNv6b.Hdw6tb {
-webkit-line-clamp: unset !important;
}
`;
const style = document.createElement('style');
style.textContent = css;
document.head.appendChild(style);
})();