Skip to content

Instantly share code, notes, and snippets.

@adamschwartz
Last active February 6, 2023 21:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamschwartz/95f8a5090279251384d9bbd310d4f8ad to your computer and use it in GitHub Desktop.
Save adamschwartz/95f8a5090279251384d9bbd310d4f8ad to your computer and use it in GitHub Desktop.
Stylesheet for pre-2020 Google Search results page styles
/* Version 3. Updated Sep 5, 2022 */
#search a:has(>br):has(>h3):has(>div) br {
display: none;
}
#search a:has(>br):has(>h3):has(>div) h3 {
display: block;
}
#search a:has(>br):has(>h3):has(>div) div:last-child {
position: relative;
}
#search a:has(>br):has(>h3):has(>div) + div {
top: 2.6em;
}
#search .iTPLzd {
padding-left: 0px !important;
}
@artik
Copy link

artik commented Jan 22, 2020

Great! fixed, thanks ;) https://i.imgur.com/UJueKuh.png

@fellerts
Copy link

Awesome fix, I've been rocking this for a while. It was working flawlessly until today, and I'm not sure what happened: https://imgur.com/a/pZ8ggdc

@artik
Copy link

artik commented Feb 14, 2020

Thanks @fellerts for the report. Here is the quick fix, add at the end:

#search .r > a[ping] > div {
    position: relative;
}

@fellerts
Copy link

Perfect @artik, that did the trick.

@adamschwartz
Copy link
Author

@artik Updated, thanks.

@adamschwartz
Copy link
Author

Updated today with new styles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment