NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Customa for Reddit (Header Shadow Fix) // @description hide the shadow on the header when you scroll // @version 1.0 // @author minin // @license MIT // @copyright 2018, minin (https://openuserjs.org//users/minin) // @include https://www.reddit.com* // @grant none // @namespace http://tampermonkey.net/ // ==/UserScript== // ==OpenUserJS== // @author minin // ==/OpenUserJS== (() => { let header = document.getElementsByTagName("header")[0]; header.classList.add("noshadowpls"); document.addEventListener("scroll", () => { if (window.scrollY >= 40) { header.classList.remove("noshadowpls"); } else { header.classList.add("noshadowpls"); } }); })();