您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
编辑高度提高到800px,历史版本添加滚动条
当前为
// ==UserScript== // @name segmentfault.com编辑面板优化 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 编辑高度提高到800px,历史版本添加滚动条 // @author https://github.com/1uokun // @match https://segmentfault.com/n/*/edit // @match https://segmentfault.com/record // @match https://segmentfault.com/* // @grant none // ==/UserScript== (function() { 'use strict'; var defaultHeight = document.documentElement.clientHeight console.log('defaultHeight',defaultHeight) /** var observer = new ResizeObserver(function(entries) { entries.forEach(function(entry) { defaultHeight = entry.contentRect.height }); }); observer.observe(noteText); **/ var _url = window.location.href; if(_url.indexOf('record')>-1 || _url.indexOf('edit')>-1){ noteText.style.minHeight = defaultHeight+'px' revisionList.style.maxHeight = defaultHeight+'px' revisionList.style.overflowY = 'auto' }else { //去iframe类型的广告 if($('iframe')){ window.stop() } // 以防万一 /** document.querySelectorAll('iframe').forEach(function(item){ item.style.display = 'none' }) **/ document.querySelectorAll('ins').forEach(function(item){ item.style.display = 'none' }) document.querySelector('.job-recommend').style.display='none' } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址