Sticky Header Steam

A simple script that shrinks the Steam header and makes it sticky

// ==UserScript==
// @name			Sticky Header Steam
// @version			0.1
// @description		A simple script that shrinks the Steam header and makes it sticky
// @match			*://steamcommunity.com/*
// @include			*://steamcommunity.com/*
// @match			*://store.steampowered.com/*
// @include			*://store.steampowered.com/*
// @namespace https://gf.qytechs.cn/users/765759
// ==/UserScript==

var style = document.createElement('style');
style.textContent = `#global_header {
	 top: 0;
     display: block;
	 position: fixed !important;
     width : 100%;
     height : 80px;
	 z-index: 10000;
}
div#global_header .content{height : 80px;}
#modalContent{z-index:13001;}
.newmodal{z-index:13001 !important;}
.addme_spacer {height:80px;width:100%;}
`;
document.head.appendChild(style);
var el = document.createElement("div");
el.classList.add("addme_spacer");
document.getElementById('global_header').after(el);

QingJ © 2025

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