Change Website Font (Online Hosting)

Use an externally hosted font on all websites

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         Change Website Font (Online Hosting)
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Use an externally hosted font on all websites
// @author       You
// @match        https://www.milkywayidle.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Use a font from GitHub or Dropbox
    const fontURL = "https://raw.githubusercontent.com/MatoAsakura/fontsupport.github.io/main/ComicNeue-Bold.ttf"; // Replace with your direct link

    const fontName = "MyOnlineFont";
    const fontSize = "14px";

    let style = document.createElement('style');
    style.innerHTML = `
        @font-face {
            font-family: '${fontName}';
            src: url('${fontURL}') format('woff2');
            font-weight: normal;
            font-style: normal;
        }

        * {
            font-family: '${fontName}', sans-serif !important;
            font-weight: 550 !important;
            font-size: ${fontSize} !important;
        }
    `;
    document.head.appendChild(style);
})();