Last active
March 10, 2026 13:33
-
-
Save Solarflame5/fd356c6e1366b54db8f28837c3358566 to your computer and use it in GitHub Desktop.
Compact Google userstyle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ==UserStyle== | |
| @name Compact Google | |
| @description Trims excess whitespace from Google results | |
| @version 1.0.0 | |
| @namespace example.com | |
| @license WTFPL | |
| ==/UserStyle== */ | |
| @-moz-document url-prefix("https://www.google.com/search") { | |
| /* search bar header */ | |
| .CvDJxb { /* Move search bar higher up the page*/ | |
| margin-top: -8px; | |
| } | |
| .dodTBe { /* Shrink search tabs vertical height*/ | |
| height: 50px; | |
| } | |
| .WE0UJf { /* weird gap right after search bar and tabs*/ | |
| min-height: 0px; | |
| } | |
| .tF2Cxc.asEBEc { /* Normal search result bottom margin */ | |
| margin-bottom: 16px; | |
| } | |
| /* Quick questions block*/ | |
| .dnXCYb { /* Quick questions height */ | |
| height: 40px; | |
| } | |
| .cUnQKe { /* Quick questions group bottom margin*/ | |
| margin-bottom: 16px; | |
| } | |
| .nlNnsd { /* gap left from show original language button */ | |
| margin-top: 0px; | |
| } | |
| /* videos block */ | |
| .bQwQK { /* show all videos button */ | |
| display: none; | |
| } | |
| .vtSz8d { /* videos block bottom margin */ | |
| margin-bottom: 0px; | |
| } | |
| .KYaZsb { /* reduced padding between videos */ | |
| padding: 4px 0; | |
| } | |
| /* images block */ | |
| .jEgXc.yIw0Od { /* show more images button */ | |
| display: none; | |
| } | |
| .ULSxyf { /* images bottom margin */ | |
| margin-bottom: 24px; | |
| } | |
| /* compact sub-site links */ | |
| .dmenKe td { | |
| padding-bottom: 0px; | |
| padding-top: 0px; | |
| } | |
| .s6JM6d .mslg .usJj9c { | |
| padding: 0 0 0 0; | |
| } | |
| .c9EJob td { | |
| padding-bottom: 0px; | |
| } | |
| .mslg td { | |
| padding-top: 0px; | |
| } | |
| .om4jw { | |
| margin-bottom: 2px; | |
| } | |
| .hGkN0 { | |
| margin-top: 0px; | |
| } | |
| .vLK3gc { | |
| padding-top: 0px; | |
| } | |
| .vt6azd { | |
| margin: 0px 0px 10px; | |
| } | |
| /* info sidebar */ | |
| .TQc1id .tsRboc ~ .tsRboc, .TQc1id .A6K0A ~ .A6K0A .tsRboc { /* section gaps */ | |
| padding-top: 2px; | |
| } | |
| .TQc1id .tsRboc:not(.IpAGnd) { | |
| padding-bottom: 0px; | |
| } | |
| .e8Ck0d.MXhHSe, .e8Ck0d.IAplyc { | |
| padding-bottom: 16px !important; | |
| } | |
| .Jb0Zif .zVvuGd, .zVvuGd.KhM6gb { | |
| padding-bottom: 0px; | |
| } | |
| .zVvuGd { | |
| padding-top: 0px; | |
| } | |
| .b3puKe { /* compact quick facts */ | |
| padding: 4px 0px 4px 8px; | |
| } | |
| /* series header */ | |
| .n4H9Ud .MjUjnf { | |
| padding-top: 0px; | |
| margin-bottom: 12px; | |
| } | |
| .e8Ck0d { | |
| padding-bottom: 12px; | |
| } | |
| .K91ENd > div { | |
| padding: 0 0 16px 0 !important; | |
| } | |
| .dURPMd { | |
| margin-top: -4px; | |
| } | |
| .xKf9F { | |
| margin-top: -4px; | |
| } | |
| .ULSxyf { | |
| margin-bottom: 8px; | |
| } | |
| /* related searches */ | |
| .qe1Dgc.OsZ04d { | |
| padding-bottom: 0px; | |
| margin-top: 0px; | |
| } | |
| /* others have searched */ | |
| .CJHX3e { | |
| padding-bottom: 0px; | |
| padding-top: 0px; | |
| } | |
| .b2Rnsc { | |
| height: 32px; | |
| margin: 2px 0 2px 0; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment