Last active
August 29, 2015 14:18
-
-
Save sherzberg/777402c41f2d4f90319a to your computer and use it in GitHub Desktop.
Github Fixed Header TamperMonkey Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Github Fixed Header | |
// @namespace http://github.com/sherzberg | |
// @version 0.2 | |
// @description This script forces the Github header to be fixed. Very useful for long thread or long file viewing. | |
// @author Spencer Herzberg | |
// @match https://github.com/* | |
// @grant none | |
// ==/UserScript== | |
$(document).ready(function() { | |
var start_of_content = $('#start-of-content'); | |
start_of_content.after("<div style='height: 50px'></div>"); | |
var header = $('.header'); | |
header.css('position', 'fixed'); | |
header.css('z-index', '1005'); | |
header.css('width', '100%'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment