Skip to content

Instantly share code, notes, and snippets.

@0187773933
Last active October 4, 2023 11:12
Show Gist options
  • Save 0187773933/0122389019d53f7d76d38912e994f3b6 to your computer and use it in GitHub Desktop.
Save 0187773933/0122389019d53f7d76d38912e994f3b6 to your computer and use it in GitHub Desktop.
Google Chrome Userscript - Comic Sans
// ==UserScript==
// @name Chrome Comic Sans
// @namespace http://your.namespace/
// @version 0.1
// @description Comic Sans
// @match *://*/*
// @grant GM_addStyle
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
let excludes = [
"button" ,
".glyphicon" ,
".fa" ,
"[class*='fa-']" ,
"i" ,
"[style*=\"controlIcons\"]" ,
".google-symbols" ,
"[class*='icon']" ,
];
let excludes_string = "";
excludes.forEach( x => { excludes_string += `:not(${x})`; } );
let style_string = "*" + excludes_string + "{ font-family: 'Comic Sans MS' !important; }";
GM_addStyle( style_string );
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment