您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动删除网页标题部分
当前为
// ==UserScript== // @name ChatGPT-Next-Web模板网站删除标题 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 自动删除网页标题部分 // @author reece00 // @match // @icon // @grant none // @license GPL-3.0-or-later // ==/UserScript== (function() { 'use strict'; // Your code here... 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); } })();