Greasy Fork镜像 还支持 简体中文。

Auto Close Google AI Studio Settings Panel

Close the Run settings panel after page aistudio load

目前為 2025-09-01 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Auto Close Google AI Studio Settings Panel
// @namespace   Violentmonkey Scripts
// @match       https://aistudio.google.com/*
// @run-at      document-end
// @version     1.0
// @author      Bui Quoc Dung
// @description Close the Run settings panel after page aistudio load
// @license     MIT
// ==/UserScript==

(function() {
    'use strict';

    function closeSettingsPanel() {
        const button = document.querySelector('button[aria-label="Close run settings panel"]');
        if (button) {
            button.click();
        }
    }

    function init() {
        setTimeout(closeSettingsPanel, 2000);
    }

    if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', init);
    } else {
        init();
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址