Greasy Fork is available in English.

sojson_maximum

最大化 https://m.sojson.com/editor.html 页面 json 编辑器的窗口

// ==UserScript==
// @name         sojson_maximum
// @namespace    http://tampermonkey.net/
// @version      2024-07-05
// @description  最大化 https://m.sojson.com/editor.html 页面 json 编辑器的窗口
// @author       hejiangyuan
// @match        https://m.sojson.com/editor.html
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @license      GPL License
// ==/UserScript==

(function() {
    'use strict';

    const t = function() {

        const height = '98vh';

        var ele = document.getElementById('jsonformatter');
        ele.style.minHeight = height;

        ele = document.getElementById('jsoneditor');
        ele.style.minHeight = height;

        ele = document.getElementsByClassName('layout-header');
        if (ele.length > 0) {
            ele[0].parentNode.removeChild(ele[0]);
        }

        ele = document.getElementsByClassName('layui-breadcrumb');
        if (ele.length > 0) {
            ele[0].parentNode.removeChild(ele[0]);
        }

        ele = document.getElementsByTagName('hr');
        if (ele.length > 0) {
            ele[0].parentNode.removeChild(ele[0]);
        }

        document.body.style.overflow = 'hidden';
    }

    setTimeout(t, 1000);

})();