您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
美化 aospxref.com 字体与大小
// ==UserScript== // @name AOSP Xref 字体美化 // @name:en AOSP Xref Font Changer // @namespace http://tampermonkey.net/ // @version 0.2 // @description 美化 aospxref.com 字体与大小 // @match http://aospxref.com/* // @match https://aospxref.com/* // @grant none // @author 二次蓝 // @description:en Change font and size for aospxref.com // @license MIT // ==/UserScript== (function() { 'use strict'; var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = ` pre, code { font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important; font-size: 14px !important; line-height: 1.5 !important; } `; document.head.appendChild(style); /* var sizeButton = document.createElement('button'); sizeButton.textContent = 'Toggle Font Size'; sizeButton.style.position = 'fixed'; sizeButton.style.top = '10px'; sizeButton.style.right = '10px'; sizeButton.style.zIndex = '9999'; sizeButton.addEventListener('click', function() { console.log("TODO"); var currentSize = parseInt(getComputedStyle(document.body).fontSize); var newSize = currentSize === 14 ? 16 : 14; document.body.style.fontSize = newSize + 'px'; document.querySelector('div#src pre').style.fontSize = newSize + 'px'; }); document.body.appendChild(sizeButton);*/ })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址