Greasy Fork

Gists GitHub 修改页面拉长文本框

一屏更多内容!

当前为 2024-07-26 提交的版本,查看 最新版本

// ==UserScript==
// @name         Gists GitHub 修改页面拉长文本框
// @namespace    http://tampermonkey.net/
// @version      2024-07-25
// @description  一屏更多内容!
// @author       Keeper
// @match        *://gist.github.com/*/edit
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    const doEdit = function() {
        const editTextArea = document.querySelector("#gists > div.js-gist-file > file-attachment > blob-editor > div.commit-create.position-relative > div > div");
        if (editTextArea !== undefined) {
            editTextArea.style = "height: 1000px;";
        }
    }
    doEdit();
    window.onload=function(){
        doEdit();
        //setTimeout(doEdit, 1000);
    }
})();