你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/501191-youtube-custom-font,源站連結 點此以跳轉

Youtube Custom Font

Applies a custom font, Vazirmatn, to all text elements on the current web page (YouTube).

当前为 2024-07-19 提交的版本,查看 最新版本



點此查看下載連結位址https://update.greasyfork.org.cn/scripts/501191/1413639/Youtube%20Custom%20Font.user.js

安装此脚本?
作者
Mohammad Khani
评分
0 0 0
版本
0.1
创建于
2024-07-19
更新于
2024-07-19
大小
4.9 KB
许可证
https://choosealicense.com/licenses/mit/
适用于

YouTube Custom Font userscript

Description

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.

Features

  • Custom Font Application: Easily apply the Vazirmatn font to text elements on specified web pages.
  • User-Friendly Button: A small button on the top left corner allows users to toggle the custom font on and off.
  • Notifications: Displays a notification to inform users when the font has been changed.
  • Customizable: Users can modify the script to change the font family and element selectors.

Usage

  1. Navigate to YouTube: Open YouTube or any other website you have added to the script’s match rules.
  2. Click the Button: Click the small "A" button on the top left corner of the page to apply the custom font.
  3. View Notification: A notification will appear, confirming that the Vazirmatn font has been applied.

Customization

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
};

Contributing

  1. Fork the Repository: Click on the "Fork" button in the upper right corner of the repository page.
  2. Clone Your Fork: Clone your forked repository to your local machine.
  3. Create a Branch: Create a new branch for your feature or bugfix.
  4. Make Changes: Implement your changes.
  5. Commit and Push: Commit your changes and push them to your forked repository.
  6. Create a Pull Request: Open a pull request to the original repository.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Author

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.