Remove Amazon Recommendations

Eliminates all of the "useless crap" (as defined by me) on the Amazon homepage

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            Remove Amazon Recommendations
// @author          Anonymous
// @namespace       https://greatest.deepsurf.us/en/scripts/387802-remove-amazon-recommendations
// @description     Eliminates all of the "useless crap" (as defined by me) on the Amazon homepage
// @version	    0.4
// @include         https://www.amazon.com/*
// @license         Creative Commons Attribution License
// ==/UserScript==
 
var crapFrames = [ "gw-layout", "desktop-grid-1", "desktop-grid-2", "desktop-grid-3", "gw-content-grid", "rhf-context", "desktop-ad-btf", "desktop-grid-1-D1", "desktop-grid-1-D2", "gw-desktop-herotator", "nav-swmslot", "gwm-Deck", "gwm-CardLoadingIndicator" ];
var crapClasses = [ "gwm-RecommendationsText gwm-u-blackjack-typography" ];
for (var i=0;i<crapFrames.length;i++) {
   var crapFrame = document.getElementById(crapFrames[i]);
   if (crapFrame) {
       crapFrame.parentNode.removeChild(crapFrame);
   }
}

for (var i=0;i<crapClasses.length;i++) {
   var crapClass = document.getElementsByClassName(crapClasses[i]);
   if (crapClass) {
       crapClass.parentNode.removeChild(crapClass);
   }
}