您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fix codeblocks!
// ==UserScript== // @name Fix urbit docs styles // @namespace http://tampermonkey.net/ // @version 0.3 // @description Fix codeblocks! // @author pfych (https://github.com/Puffycheeses) // @match https://urbit.org/* // @icon https://www.google.com/s2/favicons?domain=urbit.org // @grant none // ==/UserScript== function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } (function() { 'use strict'; // Make scrolling full width addGlobalStyle('div.min-w-0:nth-child(1) { max-width: 70ch !important; margin-right: 2em !important; }') addGlobalStyle('.max-w-screen-xl { max-width: unset !important; }') // Make codeblocks format correctly addGlobalStyle('pre { display: flex; }') addGlobalStyle('pre code { flex: 1 1 auto; padding: 1ch !important; }') })();