var formData = new FormData(this);
//a[@class='card-image-view__clickable']
Zen::parser_zen_yandex_ru - $linksTest, $links
array(8) {
[0]=>
string(122) "https://www.dw.com/en/should-germanys-ban-on-egg-donation-be-lifted/a-52221387?utm_referrer=https%3A ...[Обрезано]"
[1]=>
string(122) "https://zeenews.india.com/movies/akshay-kumar-and-kareena-kapoor-s-good-newwz-to-release-in-hong-kon ...[Обрезано]"
[2]=>
string(122) "https://www.news.com.au/sport/sports-life/nrl-great-robbie-farah-tries-to-get-tennis-star-eugenie-bo ...[Обрезано]"
[3]=>
string(122) "https://www.dailymail.co.uk/news/article-7955937/Muscled-Chinese-cosplayer-puts-fantasy-costumes-asi ...[Обрезано]"
[4]=>
string(122) "https://zeenews.india.com/cricket/live-updates/india-vs-new-zealand-5th-t20i-live-updates-2260928?ut ...[Обрезано]"
[5]=>
string(122) "https://thechive.com/2020/02/01/tourist-gets-juuuuust-a-little-too-close-to-massive-waves-video/?utm ...[Обрезано]"
[6]=>
string(122) "https://comicbook.com/anime/2020/02/02/boruto-naruto-kakashi-hatake-sexy-jutsu-anime-cosplay-genderb ...[Обрезано]"
[7]=>
string(122) "https://www.indiatimes.com/trending/wtf/coronavirus-while-china-looks-for-cure-hindu-mahasabha-says- ...[Обрезано]"
}
//a[@class='card-image-view__clickable' and starts-with(@href, 'https://zen.yandex.ru')]
a.card-image-view__clickable[href^='https://zen.yandex.ru']
находит таких 5 штук. s.src = n.src;
src => src.reduce((acc, n) => {
return acc.then(() => new Promise((resolve, reject) => {
const s = document.createElement('script');
s.onload = resolve;
s.onerror = reject;
s.src = n.src;
document.head.appendChild(s);
}));
}, Promise.resolve())