function NextPriceWeb309(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(){ NextPriceWeb309("{price1}", "1375 € | 144375 ₽ | 5087.5 BYN"); NextPriceWeb309("{price1_old}", "1900 € | 199500 ₽ | 7030 BYN"); NextPriceWeb309("{price2}", "1650 € | 173250 ₽ | 6105 BYN"); NextPriceWeb309("{price2_old}", "2250 € | 236250 ₽ | 8325 BYN"); NextPriceWeb309("{price3}", "2700 € | 283500 ₽ | 9990 BYN"); NextPriceWeb309("{price3_old}", "3800 € | 399000 ₽ | 14060 BYN"); NextPriceWeb309("{price4}", "25 мая 2026"); NextPriceWeb309("{price4_old}", ""); NextPriceWeb309("{price5}", "7 500 € | 787 000 ₽ | 27 750 BYN"); NextPriceWeb309("{price5_old}", "10 000 € | 787 000 ₽ | 27 750 BYN"); } set__price(); setTimeout(set__price, 3000);