// ==UserScript== // @name Jupyter助手 // @namespace http://tampermonkey.net/ // @version 0.1 // @description Jupyter助手0.1 // @author myaijarvis // @match http://localhost:8888/lab/* // @icon https://www.google.com/s2/favicons?domain=undefined.localhost // @require https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js // @grant none // @run-at document-end // @downloadURL none // ==/UserScript== (function() { 'use strict'; // Your code here... function setMaxHeight(){ $('.jp-OutputArea-output pre').css('max-height','20em') //console.info("setMaxHeight") } setInterval(setMaxHeight,5000) })();