Remove Amazon Recommendations

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

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