Persian Font Fix (Vazir)

Apply Vazir font to Persian/RTL content across selected websites

当前为 2025-06-03 提交的版本,查看 最新版本

// ==UserScript==
// @name         Persian Font Fix (Vazir)
// @namespace    https://gf.qytechs.cn/en/scripts/538095-persian-font-fix-vazir
// @version      1.1.6
// @description  Apply Vazir font to Persian/RTL content across selected websites
// @author       TheSina
// @match       https://web.telegram.org/*

// @match       https://x.com/*
// @match       https://twitter.com/*

// @match       https://instagram.com/*
// @match       https://facebook.com/*
// @match       https://web.whatsapp.com/*

// @match       https://github.com/*

// @match       https://www.youtube.com/*
// @match       https://soundcloud.com/*

// @match       https://google.com/*
// @match       https://translate.google.com/*

// @match       https://chatgpt.com/*
// @match       https://chat.openai.com/*
// @grant        GM_addStyle
// @run-at       document-start
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const fontOverrideStyle = `
        @font-face {
            font-family: 'FontUnicodeOverride';
            src: local('Vazirmatn')
            unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
        }
        * {
            font-family: 'FontUnicodeOverride', 'Vazirmatn', 'Noto Sans', sans-serif !important;
        }
    `;

    GM_addStyle(fontOverrideStyle);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址