function NextPriceWeb307(text, NextDate) { function NextPrice(nodes) { nodes.forEach(node => { if (node instanceof HTMLScriptElement) { return; } if (node instanceof HTMLStyleElement) { return; } if (node instanceof Text) { if (node.nodeValue.match(text)) { node.nodeValue = node.nodeValue.replace(text, NextDate); } } else { NextPrice(Array.from(node.childNodes)); } }); } NextPrice(Array.from(document.body.childNodes)); } function set__price(){ NextPriceWeb307("{price1}", "1900 € | 199500 ₽ | 7030 BYN"); NextPriceWeb307("{price1_old}", ""); NextPriceWeb307("{price2}", "2250 € | 236250 ₽ | 8325 BYN"); NextPriceWeb307("{price2_old}", ""); NextPriceWeb307("{price3}", "3800 € | 399000 ₽ | 14060 BYN"); NextPriceWeb307("{price3_old}", ""); NextPriceWeb307("{price4}", "25 мая 2026"); NextPriceWeb307("{price4_old}", ""); NextPriceWeb307("{price5}", ""); NextPriceWeb307("{price5_old}", ""); } set__price(); setTimeout(set__price, 3000);