ChatGPT-Next-Web模板网站删除标题

自动隐藏网页标题部分

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         ChatGPT-Next-Web模板网站删除标题
// @namespace    tampermonkey413575
// @version      0.3
// @description  自动隐藏网页标题部分
// @author       reece00
// @match        *://*/*
// @grant        none
// @license GPL-3.0-or-later
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...

    if (localStorage.getItem('chat-next-web-store') !== null) {
        window.onload = setTimeout(click_item, 200);
    }
    function click_item(){
        if(document.querySelector('.window-header')){

            var title = document.querySelector('.window-header-main-title').textContent;
            if(document.querySelector('.modal-mask') == null){
                if(document.querySelector('.window-header').style.display != 'none')
                {
                    if(document.querySelector('.window-header-main-title') && title !== '设置')
                    {
                        document.getElementsByClassName("window-header")[0].style.display = 'none';
                    }
                }
            }else{
                document.getElementsByClassName("window-header")[0].style.display = '';
            }


        }
        setTimeout(click_item, 200);
    }
})();