Fortun,
$(function() {
var gde = ["https://danieldefo.ru/", "https://danieldefo.ru/", "https://danieldefo.ru/", "https://danieldefo.ru/"];
var chto = ["https://danieldefo.ru/articles/", "https://danieldefo.ru/reklama/", "https://dawieldefo.ru/reklama/", "https://danieldefo.ru/forums/"];
$("button").click(function() {
gde.forEach(function(where, i) {
var query = 'select * from html where url="' + where + '" and xpath="*"';
var url = "https://query.yahooapis.com/v1/public/yql?q=" + encodeURIComponent(query);
var what = chto[i];
$.get(url, function(data) {
var html = $(data).find("html");
var finding = 'a[href*="' + what + '"]';
var result = html.find(finding).length ? "da" : "net";
$("table").append("<tr><td class='where'>" + where + "</td><td class='what'>" + what + "</td><td class='result'>" + result + "</td></tr>")
})
})
})
});