Use Vazirmatn font for Persian and Arabic text across all websites
目前為
// ==UserScript==
// @name Persian Font Fix (Vazir)
// @namespace https://greasyfork.org/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;
}
`);
})();