if (!String.prototype.includes) { String.prototype.includes = function(search, start) { 'use strict'; if (search instanceof RegExp) { throw TypeError('first argument must not be a RegExp'); } if (start === undefined) { start = 0; } return this.indexOf(search, start) !== -1; }; } $(document).ready(function() { loadTagManager(); $(".discount-info > span:contains('price.discount.free.shipping.middle')").hide (); });