Filters
Clear
Close
Product Categories
Filters
Clear
Filters
Clear
Product Categories
setTimeout(function () { var list = document.querySelectorAll(".d-catalog-product-badge.d-catalog-product-badge-rebate"); for (let x of list) { itsTrue = x.innerHTML; itsRebate = itsTrue.endsWith("Rebate"); console.log(itsRebate); if(itsRebate) { console.log("It is true!"); x.innerHTML = x.innerHTML.replace(/Rebate/g, 'Save'); myArray = x.innerHTML.split(" "); x.innerHTML = myArray[1] + " " + myArray[0]; } else { myArray = x.innerHTML.split(" "); x.innerHTML = myArray[1] + " " + myArray[0]; } } }, 1000);