Greasy Fork

Gists GitHub 修改页面拉长文本框

一屏更多内容!

// ==UserScript==
// @name         Gists GitHub 修改页面拉长文本框
// @namespace    http://tampermonkey.net/
// @version      2024-07-27.2
// @description  一屏更多内容!
// @author       Keeper
// @match        *://gist.github.com/*
// @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 !== null) {
            editTextArea.style = "height: 1000px;";
        }
    }
    doEdit();
    setInterval(doEdit, 100);
    window.onload=function(){
        doEdit();
    }
})();