Last active
April 24, 2021 01:25
-
-
Save HazemAM/7355fcdfb0e14d927da4ae9e6608fa14 to your computer and use it in GitHub Desktop.
A user style for hiding search bar in Google search pages.
This file contains 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 Google search bar hide | |
@description Hiding search bar in Google search pages. | |
@author Hazem AbuMostafa (http://hazemam.com) | |
@homepageURL https://gist.github.com/HazemAM/7355fcdfb0e14d927da4ae9e6608fa14 | |
@updateURL https://gist.github.com/HazemAM/7355fcdfb0e14d927da4ae9e6608fa14/raw/google-no-search-bar.user.css | |
@namespace github.com/hazemam | |
@version 1.1.0 | |
@license Apache-2.0 | |
@preprocessor default | |
@var number height "Header height" [15, 5, null, 5, 'px'] | |
==/UserStyle== */ | |
@-moz-document regexp("http(s)?:\/\/(www\.)?google\.com(\.[a-z]+)?\/search.*") { | |
/* THE BOX */ | |
.sfibbbc, .RNNXgb { | |
display: none; | |
} | |
/* MINI LOGO */ | |
.minidiv .logo { | |
padding-top: 8px; | |
padding-bottom: 8px; | |
} | |
/*Mini bar background:*/ | |
.sfbg.nojsv { | |
display: none; | |
} | |
/* MAIN POSITIONS */ | |
.srp #searchform { | |
top: calc(5px + var(--height)); | |
height: 0; | |
} | |
#hdtb { | |
margin-top: calc(-88px + (var(--height) * 2)); | |
} | |
#hdtb-msb { | |
margin-top: calc(-15px - var(--height)); | |
} | |
/* TWEAKS */ | |
div.sfbg, div.sfbgg { | |
min-width: 0; | |
height: 0; | |
} | |
/*Background:*/ | |
.sfbgx { | |
display: none; | |
} | |
/*Image tools:*/ | |
#ab_ctls { | |
right: 180px; | |
padding-top: calc(25px - var(--height)); | |
} | |
/*Google top-right tools:*/ | |
.gb_Pf .gb_jb { | |
/*margin-top: 3px;*/ | |
} | |
/* COLORS AND POSITIONS */ | |
body.vasq #hdtb-msb .hdtb-mitem.hdtb-msel { | |
line-height: 1; | |
padding: 8px 15px; | |
border-radius: 30px; | |
height: 10px; | |
} | |
#hdtb-msb .hdtb-mitem.hdtb-msel { | |
border-bottom: 3px solid #1A73E8; | |
color: white; | |
background-color: #1A73E8; | |
} | |
#hdtb-msb .hdtb-mitem.hdtb-msel img { | |
filter: brightness(100); | |
} | |
/*Better click targets:*/ | |
#hdtb-msb .hdtb-mitem.hdtb-imb { | |
height: calc(58px + var(--height)); | |
padding: 0; | |
} | |
#hdtb .hdtb-mitem a { | |
display: inline-block; | |
padding: 28px 16px; | |
margin: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment