Persian Font Fix (Vazir)

Apply Vazir font to Persian/RTL content across all websites

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

// ==UserScript==
// @name         Persian Font Fix (Vazir)
// @namespace    https://greasyfork.org/en/scripts/538095-persian-font-fix-vazir
// @version      1.1.2
// @description  Apply Vazir font to Persian/RTL content across all websites
// @author       TheSina
// @match        *://*/*
// @grant        GM_addStyle
// @run-at       document-start
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

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

    GM_addStyle(fontOverrideStyle);
})();