您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Applies a custom font, Vazirmatn, to all text elements on the current web page (YouTube).
当前为
This UserScript applies a custom font, Vazirmatn, to all text elements on specified web pages, such as YouTube. The script adds a small “Float Button” to the top left corner of the web page, which, when clicked, changes the font of the text elements on the page.
The script can be customized by modifying the config
object at the beginning of the script:
const config = {
fontFamily: "Vazirmatn", // Change this to your desired font family
selector: ".style-scope", // Change this to your desired CSS selector
buttonText: "A", // Change the text displayed on the button
notificationDuration: 2000, // Duration for which the notification is displayed (in ms)
buttonFadeDuration: 2000, // Duration for the button fade effect (in ms)
notificationMessage: "Typography updated: Vazirmatn font applied.", // Notification message
buttonTooltip: "Enhance readability with Vazirmatn font", // Tooltip text for the button
};
This project is licensed under the MIT License. See the LICENSE file for more information.
Amm1rr
For any inquiries or feedback, please visit the GitHub repository.
Feel free to modify this README as necessary to better fit the needs and specifics of your project.