Filter Scroll for Amazon

Makes the little Amazon filter thing follow you and scroll on it's own. I spent too long on this.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ==UserScript==
// @name         Filter Scroll for Amazon
// @namespace    https://cbass92.org/
// @version      1.2
// @description  Makes the little Amazon filter thing follow you and scroll on it's own. I spent too long on this.
// @author       Cbass92
// @match        https://www.amazon.com/s*
// @grant        none
// @license MIT
// ==/UserScript==
    let element = document.getElementsByClassName('sg-col-inner');
    element[element.length - 1].style.position = "fixed";
    element[element.length - 1].style.overflowY = "auto";
    element[element.length - 1].style.width = "inherit";
    element[element.length - 1].style.height = "60vh";
    element[element.length - 1].style.borderRadius = "15px";
    element[element.length - 1].style.backgroundColor = "#c8c9cc";
    element[element.length - 1].style.padding = "10px";