您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Uses Fira Code (or the Nerd Font variant) for all inline code or code-block entries on Workflowy
- // ==UserScript==
- // @name Workflowy Code to Fira Code
- // @version 2025-02-18
- // @description Uses Fira Code (or the Nerd Font variant) for all inline code or code-block entries on Workflowy
- // @author 5310
- // @match https://workflowy.com/
- // @icon https://www.google.com/s2/favicons?sz=64&domain=workflowy.com
- // @grant none
- // @license MIT
- // @namespace https://greasyfork.org/users/1436706
- // ==/UserScript==
- const addStyle = css => {
- var n = document.createElement('style')
- n.type = "text/css"
- n.innerHTML = css
- document.getElementsByTagName('head')[0].appendChild(n)
- }
- (function() {
- 'use strict';
- addStyle(`
- .code-block > .name > .content, code {
- font-family: "FiraCode Nerd Font", "Fira Code", sans-serif !important;
- }
- `)
- })();