This little code is used to remove all the images of the products on the amazon website so that people literally can’t judge a book by its cover. This script works best when supplemented with an ad blocker (otherwise the pictures just end up appearing in the ad space).
// ==UserScript== // @name Can't Judge a Book by its Cover // @version 1.0 // @namespace nikyreynolds.com // @description This erases all images from amazon.com so that you don't judge a book by its cover. Works best when supplemented with an ad blocker. // @require http://arts445.courses.bengrosser.com/files/ready-vanilla.js // @require http://code.jquery.com/jquery-3.3.1.min.js // @run-at document-start // // @match *://*.amazon.com/* // @include *://*.amazon.com/* // @exclude *://*.amazon.com/ai.php* // @exclude *://*.amazon.com/ajax/* // @exclude *://*.amazon.com/dialog/* // @exclude *://*.amazon.com/connect/* // ==/UserScript==// ----------------------------------------- (function() { var j; function main() { <%%KEEPWHITESPACE%%> j = jQuery.noConflict(); <%%KEEPWHITESPACE%%> j('img, #imgTagWrapperId, .block, .sky').each(function() { hideElement(this); }); // hides images <%%KEEPWHITESPACE%%> ready('img, #imgTagWrapperId, .block, .sky', function(e) { hideElement(e); }); // hides images <%%KEEPWHITESPACE%%> function hideElement(e) { j(e).hide(); } } main(); String.prototype.contains = function(it) { return this.indexOf(it) != -1; }; })();