您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes the menu bar in GitHub stay at the top of the page when scrolling
- // ==UserScript==
- // @name Floating Menu Bar (GitHub)
- // @namespace chriskim06
- // @description Makes the menu bar in GitHub stay at the top of the page when scrolling
- // @include https://github.com/*/*
- // @version 1.0.6
- // @grant none
- // @locale en
- // ==/UserScript==
- (function() {
- var content = document.querySelector('div.header.header-logged-in.true');
- if (content !== null) {
- content.style.position = 'fixed';
- content.style.zIndex = '10000';
- content.style.width = '100%';
- content = document.querySelector('#js-flash-container');
- if (content !== null) {
- content.style.position = 'relative';
- content.style.top = '50px';
- }
- content = document.querySelector('div[role="main"]');
- if (content !== null) {
- content.style.position = 'relative';
- content.style.top = '50px';
- }
- content = document.querySelector('div.container.site-footer-container');
- if (content !== null) {
- content.style.position = 'relative';
- content.style.top = '50px';
- }
- }
- })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址