Skip to content

Instantly share code, notes, and snippets.

@Mariven
Created October 23, 2024 22:05
Show Gist options
  • Save Mariven/01bc068545cf8ca12d58d525ca48fa8f to your computer and use it in GitHub Desktop.
Save Mariven/01bc068545cf8ca12d58d525ca48fa8f to your computer and use it in GitHub Desktop.
css selectors to cover up google's ongoing necrosis
div#main>div:first-child>div:has(>div+div#center_col) div:has(div[jscontroller]>div[jsname]>div>h1+div[jscontroller]>div[jsmodel]) > div:first-child {
/* remove AI answers box */
display: none;
}
div#search div[data-async-context] > div:nth-child(2) div:has(video, [aria-label*="Play on Google"]) {
/* remove videos section */
display: none !important;
}
div#easter-egg {
/* this shit was cute back when you were GOOD,
google, but now it's just kinda distressing */
display: none;
}
div#search div[data-async-context] > div:has(a[href*="https://www.quora.com"] > h3 + div > div cite > span):not(:has(div[data-q])) {
/* remove all results from quora */
display: none;
}
div#search div[data-async-context] > div:has(div[data-q]) div[data-q] > div:first-child > div > div[aria-controls] > div:is(:first-child, :nth-child(2)) {
/* compress People Also Ask box */
margin: 0px !important;
background: none;
}
div#search {
margin-top: 1em;
}
div#botstuff div[jsaction]:has(div[data-q]) div {
/* hide bottom People Always Ask
box (WHY are there two boxes) */
display: none;
}
div#sfooter {
/* disable creepy footer that tells you where you are */
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment