您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自定义相关网站的样式:增加油猴脚本更新脚本页面编辑框的高度 | 控制jupyter页面代码执行后生成元素的高度
当前为
// ==UserScript== // @name 自定义网站样式 // @namespace http://tampermonkey.net/ // @version 0.1.7 // @description 自定义相关网站的样式:增加油猴脚本更新脚本页面编辑框的高度 | 控制jupyter页面代码执行后生成元素的高度 // @author myaijarvis // @icon https://gf.qytechs.cn/packs/media/images/blacklogo16-5421a97c75656cecbe2befcec0778a96.png // @match http://localhost:8888/lab/* // @match https://gf.qytechs.cn/zh-CN/scripts/*/versions/new // @match https://labuladong.gitee.io/* // @match https://leetcode-cn.com/problems/* // @match https://www.cnblogs.com/*/p/* // @match https://www.cnblogs.com/*/articles/* // @match https://www.cnblogs.com/*/archive/* // @require https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js // @run-at document-end // @grant none // ==/UserScript== this.$ = this.jQuery = jQuery.noConflict(true); (function() { 'use strict'; // Your code here... const url=document.URL || ''; if (url.includes('localhost:8888/lab')){ //console.info("setMaxHeight"); setInterval(()=>{ $('.jp-OutputArea-output pre').css('max-height','30em'); },2000); return; } if (url.match('greasyfork\.org\/(.*?)\/scripts\/(.*?)\/versions\/new')){ //console.info("setMaxHeight"); let height='500px'; // textarea的高度 $('#script-version-additional-info-0').css({'height':height}); $('#script_version_changelog').css({'height':'200px'}); return; } if (url.includes('labuladong.gitee.io')){ $('#body-inner a').css({'color':'blue','text-decoration':'underline'}); $('a').attr('target','_blank'); return; } if (url.includes('leetcode-cn.com/problems')){ // 需要等内容加载 setTimeout(()=>{ $(".light").on("DOMNodeInserted", function (e) { // console.info("2"); $('.brief_container a').css({'color':'blue','text-decoration':'underline'}); }); },3000); return; } if (url.match('cnblogs.com\/.*?\/p\/.*?') || url.match('cnblogs.com\/.*?\/articles\/.*?') || url.match('cnblogs.com\/.*?\/archive\/.*?')){ // 需要等内容加载 setTimeout(()=>{ $(".blogpost-body *").css({'font-size': '18px','letter-spacing': '0.05em'}); },2000); return; } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址