鸿蒙字体

在网页中使用华为鸿蒙字体

安裝腳本?
作者推薦腳本

您可能也會喜歡 鸿蒙字体

以使用者樣式安裝
  1. // ==UserScript==
  2. // @name 鸿蒙字体
  3. // @namespace 鸿蒙字体
  4. // @version 2.0
  5. // @description 在网页中使用华为鸿蒙字体
  6. // @author LWF
  7. // @license MIT
  8. // @grant none
  9. // @match *://*/*
  10. // @exclude *://fanqienovel.com/reader/*
  11. // @exclude *://*.android.google.cn/*
  12. // @exclude *://www.bilibili.com/*
  13. // @exclude *://search.bilibili.com/*
  14. // @exclude *://account.bilibili.com/*
  15. // @exclude *://developer.huawei.com/*
  16. // @exclude *://ai.qaqgpt.com/*
  17. // @exclude *://zifh.com/*
  18. // @exclude *://m3.material.io/*
  19. // @exclude *://www.mdui.org/*
  20. // @exclude *://blog.xiaoqianlan.com/*
  21. // @icon https://article.biliimg.com/bfs/new_dyn/629e3eaa7c24411035bbd9e055f376883461567821646211.jpg
  22. // @run-at document-start
  23. // ==/UserScript==
  24.  
  25. (function() {
  26. // 创建一个 <style> 元素
  27. const css = document.createElement('style');
  28. // 为 <style> 元素设置 CSS 内容,导入外部字体,并强制所有元素使用 HarmonyOS_Medium 字体
  29. css.innerHTML = "@import url('https://s1.hdslb.com/bfs/static/jinkela/long/font/regular.css');*{font-family:HarmonyOS_Regular!important;}";
  30. // 将 <style> 元素添加到页面的 <head> 部分
  31. document.head.appendChild(css);
  32. })();

QingJ © 2025

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