Greasy Fork is available in English.

Floating Menu Bar (GitHub)

Makes the menu bar in GitHub stay at the top of the page when scrolling

2016-07-12 기준 버전입니다. 최신 버전을 확인하세요.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==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.4
// @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 (container !== null) {
      container.style.position = 'relative';
      container.style.top = '50px';
    }
    content = document.querySelector('div[role="main"]');
    if (content !== null) {
      content[0].style.position = 'relative';
      content[0].style.top = '50px';
    }
    content = document.querySelector('div.container.site-footer-container');
    if (content !== null) {
      content.style.position = 'relative';
      content.style.top = '50px';
    }
  }
})();