We are old school, please call us:
(806) 228-0686
ask to talk to Nancy!
// Wait for the document to be fully loaded
// Initialize a Mutation Observer
const observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
// Check if the element exists and its text is "Not Available For Sale"
const spanElement = document.querySelector('span[data-oe-field="prevent_zero_price_sale_text"]');
if (spanElement && spanElement.textContent === "Not Available For Sale") {
// Change the text to "This Puppy Found a Home"
spanElement.textContent = "This Puppy Found a Home";
}
});
});
// Configuration of the observer
const config = {
attributes: true,
childList: true,
characterData: true,
subtree: true
};
// Pass in the target node (document.body), as well as the observer options
observer.observe(document.body, config);