I decided to do my ERASE project on a shopping platform, because when it comes to online shopping I have a problem. It’s so easy to scroll through a website and just click “add to cart” when you see an item, discount, or reasonable price. With that being said, I created The Anti-Shopper user script in order to hide the most important components needed to online shop. I thought it was appropriate to use an example from the Illini apparel website, and I made the “add to cart” button, price, details, and description disappear. How can you online shop when you don’t know anything about what you’re trying to buy!
// ==UserScript== // @name The Anti-Shopper // @namespace http://tampermonkey.net/ // @version 1.0 // @description Removing the price, the add to cart button, description, and details // @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 // @author Jessica Glasson // @match http://store.fightingillini.com/Illinois_Fighting_Illini_Ladies/Womens_Fanatics_Branded_Navy_Illinois_Fighting_Illini_Primary_Distressed_Arch_Over_Logo_Long_Sleeve_Hit_T-Shirt* // @grant none // @run-at document-start // ==/UserScript== (function() { var j; function main() { j = jQuery.noConflict(); j('#addToCart').each(function() { hideElement(this); }); j('.price-value').each(function() { hideElement(this); }); j('#product-details-disclosable').each(function() { hideElement(this); }); j('#product-description-disclosable').each(function() { hideElement(this); }); ready('#addToCart', function(e) { hideElement(e); }); ready('.price-value', function(e) { hideElement(e); }); ready('#product-details-disclosable', function(e) { hideElement(e); }); ready('#product-description-disclosable', function(e) { hideElement(e); }); function hideElement(e) { j(e).hide(); } } main(); String.prototype.contains = function(it) { return this.indexOf(it) != -1; }; })();