Skip to content

Instantly share code, notes, and snippets.

@sbai
Created April 6, 2014 05:11
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 sbai/10001777 to your computer and use it in GitHub Desktop.
Save sbai/10001777 to your computer and use it in GitHub Desktop.
Hide the red squiggle from the Google Search spell checker.
/*
The Google Search page has its own spellchecker, which applies to any text you
enter into the search box. Like all spellcheckers, it's a useless pile of shit.
I haven't found any way to turn it off, or even much confirmation of its
existence.
The page loads a script that sends the content of the search box to Google's
servers whenever you type something into it. This enables Google to perform
autocompletion and spellchecking. If Google thinks you've misspelled something,
the script will insert a span element with the CSS class "gsc_b" into the input
box.
This span has a CSS background-image, which is a Base64-encoded GIF of a red
squiggle. The red squiggle only appears when the input box is focused and the
user has typed something. Clicking away causes it to disappear.
Presumably, the "gsc" in "gsc_b" stands for "Google spell check" or something
like that. The red squiggle can be hidden by overriding the CSS style so it
is not displayed by the browser.
*/
span.gsc_b {
display: none;
}
@onguarde
Copy link

awesome seems to work perfectly.

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