Workflowy Code to Fira Code

Uses Fira Code (or the Nerd Font variant) for all inline code or code-block entries on Workflowy

  1. // ==UserScript==
  2. // @name Workflowy Code to Fira Code
  3. // @version 2025-02-18
  4. // @description Uses Fira Code (or the Nerd Font variant) for all inline code or code-block entries on Workflowy
  5. // @author 5310
  6. // @match https://workflowy.com/
  7. // @icon https://www.google.com/s2/favicons?sz=64&domain=workflowy.com
  8. // @grant none
  9. // @license MIT
  10. // @namespace https://gf.qytechs.cn/users/1436706
  11. // ==/UserScript==
  12.  
  13. const addStyle = css => {
  14. var n = document.createElement('style')
  15. n.type = "text/css"
  16. n.innerHTML = css
  17. document.getElementsByTagName('head')[0].appendChild(n)
  18. }
  19.  
  20. (function() {
  21. 'use strict';
  22. addStyle(`
  23. .code-block > .name > .content, code {
  24. font-family: "FiraCode Nerd Font", "Fira Code", sans-serif !important;
  25. }
  26. `)
  27. })();

QingJ © 2025

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