Skip to content

Instantly share code, notes, and snippets.

@illixion
Last active February 2, 2021 20:42
Show Gist options
  • Save illixion/08c9314f660a195c93286fdb5e944cce to your computer and use it in GitHub Desktop.
Save illixion/08c9314f660a195c93286fdb5e944cce to your computer and use it in GitHub Desktop.
Removes Google Sans from the search results page
// ==UserScript==
// @name UnSansify Google Search
// @namespace http://catto.io/
// @version 1.1
// @description Remove Google Sans font from the search results page
// @author Manual
// @match www.google.com/*
// @match google.com/*
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle('#res h3, #botstuff h3 { font-family: arial,sans-serif !important; };')
@illixion
Copy link
Author

illixion commented Feb 2, 2021

@AlexFolland

I've implemented a more reliable selector, can you please check that this works for you? I'd check myself, but I didn't get this A/B test on any of my devices.

@AlexFolland
Copy link

AlexFolland commented Feb 2, 2021

Yes, that worked! It still doesn't work with the spacing in the header with ViolentMonkey, but the new code applies and looks right now with my edited header. Thanks!

@AlexFolland
Copy link

AlexFolland commented Feb 2, 2021

For reference, here's the code that is working for me:

// ==UserScript==
// @name UnSansify Google Search
// @namespace http://catto.io/
// @version 1.1
// @description Remove Google Sans font from the search results page
// @author Manual
// @include http*://*.google.com/search*
// @grant GM_addStyle
// ==/UserScript==

GM_addStyle('#res h3, #botstuff h3 { font-family: arial,sans-serif !important; };')

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