您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
set MT height
// ==UserScript== // @name Rome Tools // @namespace http://tampermonkey.net/ // @description set MT height // @license MIT // @version 0.3 // @icon https://p1.meituan.net/travelcube/ccc7cd82054f819aa1e13ec9ffad7ed5314182.png // @match https://horn.sankuai.com/files/edit/* // @match https://horn.sankuai.com/new/file/* // @match https://horn.sankuai.com/legacy/files/* // @match https://horn.sankuai.com/file/* // @match https://oceanus.mws.sankuai.com/site_detail?* // @match https://talos.sankuai.com/* // @match https://talos.hfe.st.sankuai.com/* // @grant GM_log // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; GM_log("Rome+Tampermonkey"); GM_addStyle('.code-editor{height: 800px !important}'); GM_addStyle('.editor-container{height: 800px !important}'); GM_addStyle('.component-content-card{height: 500px !important; width: 800px !important}'); GM_addStyle('.CodeMirror{height: 900px !important}'); function setHeight() { const list = document.querySelectorAll(".log-theme > div"); GM_log('i') list.forEach(function(i){ i.setAttribute("style", "height: 600px; overflow-y: auto;"); }) GM_log('j') } const loaded = document.readyState == "complete" || document.readyState == "loaded" || document.readyState == "interactive"; // talos页面加载可能稍慢 const mountAfterDelay = () => setTimeout(setHeight, 3000); if (loaded) { mountAfterDelay(); } else { window.addEventListener("DOMContentLoaded", mountAfterDelay); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址