Remove Amazon Recommendations

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

目前為 2019-07-23 提交的版本,檢視 最新版本

// ==UserScript==
// @name            Remove Amazon Recommendations
// @author          Anonymous
// @namespace       http://www.example.url/to/your-web-site/
// @description     Eliminates all of the "useless crap" (as defined by me) on the Amazon homepage
// @version	        0.1
// @include         https://www.amazon.com
// @license         Creative Commons Attribution License
// ==/UserScript==
 

var crapFrames = [ "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" ];
for (var i=0;i<crapFrames.length;i++) {
   var crapFrame = document.getElementById(crapFrames[i]);
   if (crapFrame) {
       crapFrame.parentNode.removeChild(crapFrame);
   }
}