Last active
October 4, 2023 11:12
-
-
Save 0187773933/0122389019d53f7d76d38912e994f3b6 to your computer and use it in GitHub Desktop.
Google Chrome Userscript - Comic Sans
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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