minin / Customa for Reddit (Header Shadow Fix)

// ==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");
        }
    });
})();