Raw Source
dannykushner / Yahoo Sans Bad

// ==UserScript==
// @name         Yahoo Sans Bad
// @namespace    https://www.reddit.com/user/1-760-706-7425
// @version      0.1.1
// @author       1-760-706-7425
// @description  Yahoo Sans is bad and should feel bad.
// @copyright    2019, 1-760-706-7425 (https://openuserjs.org/users/1-760-706-7425)
// @license      MIT
// @updateURL    https://openuserjs.org/meta/1-760-706-7425/Yahoo_Sans_Bad.meta.js
// @match        http*://hockey.fantasysports.yahoo.com/*
// @require      https://code.jquery.com/jquery-3.4.1.min.js
// @run-at       document-body
// @grant        GM_addStyle
// ==/UserScript==

(function($) {
    'use strict';

    const initial = $("body").css("font-family");
    const filtered = initial.split(',')
        .filter(font => font.includes("Yahoo") === false)
        .reduce((acc, curr) => `${acc},${curr}`);

    GM_addStyle(`body { font-family: ${filtered} !important; }`);
}(jQuery.noConflict(true)));