Persian Font Fix (Vazir)

Use Vazirmatn font for Persian and Arabic text across all websites

目前為 2025-06-17 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Persian Font Fix (Vazir)
// @namespace    https://gf.qytechs.cn/en/scripts/538095-persian-font-fix-vazir
// @version      1.3.1
// @description  Use Vazirmatn font for Persian and Arabic text across all websites
// @author       TheSina
// @match        *://*/*
// @grant        GM_addStyle
// @run-at       document-start
// @license      MIT
// ==/UserScript==


(function () {
    'use strict';

    GM_addStyle(`
        @font-face {
          font-family: "Segoe UI";
          src: local("Vazirmatn"), local("Noto Sans");
          font-display: swap;
          unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
        }

        @font-face {
          font-family: "Roboto";
          src: local("Vazirmatn"), local("Noto Sans");
          font-display: swap;
          unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
        }

        @font-face {
          font-family: "Arial";
          src: local("Vazirmatn"), local("Noto Sans");
          font-display: swap;
          unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
        }

        @font-face {
          font-family: "Helvetica";
          src: local("Vazirmatn"), local("Noto Sans");
          font-display: swap;
          unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
        }

        @font-face {
          font-family: "Tahoma";
          src: local("Vazirmatn"), local("Noto Sans");
          font-display: swap;
          unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
        }
    `);
})();

QingJ © 2025

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