Last active
December 26, 2019 07:27
-
-
Save CairX/d11395d09fbce8ae623c to your computer and use it in GitHub Desktop.
YouTube: Disable the sticky ability of the search bar.
This file contains 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 YouTube: Relative Header | |
// @namespace https://gist.github.com/CairX | |
// @description Disable the sticky ability of the YouTube search bar. | |
// @include https://www.youtube.com/* | |
// @version 0.1 | |
// @grant none | |
// @noframes | |
// ==/UserScript== | |
var positioner = document.getElementById("masthead-positioner"); | |
positioner.style.position = "relative"; | |
var spacer = document.getElementById("masthead-positioner-height-offset"); | |
spacer.style.display = "none"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment