document.addEventListener("DOMContentLoaded", function() {
// Find the element with the text "Schedule a tour"
var element = document.querySelector('h2[data-armada-selector="modal-heading"]');
// Check if the element exists
if (element) {
// Change the text to "Book Apartment"
element.textContent = "SHOP BY SIZE";
}
});
// Find the element with the specified class
var elementWithClass = document.querySelector('h6.font-heading.heading-case.text-headings.break-anywhere.text-h5.ml-2.col-start-2.col-end-3.row-start-2.row-end-3');
// Check if the element with the class exists
if (elementWithClass) {
// Apply the new text content
elementWithClass.textContent = "SHOP BY SIZE";
// Apply the new font
elementWithClass.style.fontFamily = "YourDesiredFont, sans-serif";
}
if (window.location.href === "https://grittysoul.com/collections/exclusive-new" || window.location.href === "https://grittysoul.com/collections/clothing" || window.location.href === "https://grittysoul.com/collections/jackets-sweaters-coats" || window.location.href === "https://grittysoul.com/collections/dresses-and-skirts" || window.location.href === "https://grittysoul.com/collections/jewelry-and-accessories" || window.location.href === "https://grittysoul.com/collections/cleopatra-stones-collection" || window.location.href === "https://grittysoul.com/collections/bottoms" || window.location.href === "https://grittysoul.com/collections/tops" || window.location.href === "https://grittysoul.com/collections/jumpsuits" || window.location.href === "https://grittysoul.com/collections/sets" || window.location.href === "https://grittysoul.com/collections/jeans-and-denim" || window.location.href === "https://grittysoul.com/collections/graphic-tees-and-t-shirts" || window.location.href === "https://grittysoul.com/collections/tracksuits" || window.location.href === "https://grittysoul.com/collections/caution-gritty-girl-collection" || window.location.href === "https://grittysoul.com/collections/camouflage-collection-1" || window.location.href === "https://grittysoul.com/collections/all" || window.location.href === "https://grittysoul.com/collections/40-off-super-weekend-sale" ) {
// Append the required parameters to the URL
window.location.href += "?filter.v.availability=1&filter.v.price.gte=&filter.v.price.lte=";
}
window.onload = function() {
var parentElement = document.querySelector('.cs-cart-page');
if (parentElement) {
var link = parentElement.querySelector('a.hellow.text-h6');
if (link) {
link.href = "https://grittysoul.com/collections/all?filter.v.availability=1&filter.v.price.gte=&filter.v.price.lte=";
}
}
};