Function prettyScrollbar

  • Styles the default scrollbar to be more pretty and less intrusive (especially on dark backgrounds), (similar to MacOS)

    Parameters

    • root: Element = document.head

    Returns HTMLStyleElement