Answer the question
In order to leave comments, you need to log in
How can I automatically raise an ad on sites?
Hello!
There was such a question. It is necessary to make an automatic raising of the ad on the site. The site makes it possible to raise 2 times a day, that is, every 12 hours. Is there any way to do it automatically? If so, how?
Thank you!
Answer the question
In order to leave comments, you need to log in
a) If pressing the button is not accompanied by entering a captcha or some complex function to check that it was done by a person;
b) plus if the authorization in the service is valid for an unlimited time;
c) plus the ad lift form page is on the same domain as the ad site;
d) and its appearance is not burdened by the work of a complex function;
e) plus the raise button can be pulled out with a css selector with fixed parameters.
.... then you can try to insert JS into the console on the service page, in the form of such a crutch function that will run every 12 hours.
We never close the tab in the browser so that the waiting for the execution of the function does not stop; do not turn off the computer.
function use_my_iframe()
{
var iframe = document.createElement('iframe'); // создаем фрейм
iframe.onload = function() // добавляем обработчик по завершении загрузки содержимого фрейма
{
setTimeout(function()
{
var iframe_content = iframe.contentWindow.document; // получаем доступ к контенту фрейма
var button = iframe_content.querySelector("input[type='button']"); // ищем интересуемую кнопку в контенте фрейма по селектору
button.click(); // нажимает на кнопку
setTimeout(function()
{
document.body.removeChild(iframe);
}, 30000); // удаление фрейма через некоторое время после активации кнопки
}, 3000); // ждем некоторое время после загрузки фрейма (на случай, если интересуема кнопка не сразу появляется в контенте)
};
iframe.setAttribute('src', 'http://localhost/index2.html'); // добавляем адрес страницы, где находится интересуемая кнопка
document.body.appendChild(iframe);
}
use_my_iframe(); //запускаем сейчас
setInterval(use_my_iframe, 12 * 3600 * 1000 + 30000); // Запуск функции раз в 12 часов (+30 сек, чтобы сервис гарантировано посчитал истечение срока)
I have the same problem, but on the site https://www.ebay-kleinanzeigen.de
I would like my ads to be automatically promoted to the TOP (top) and kept there.
Or at least once or twice a day. This site provides a paid ad lift.
But three skins are torn off for him.
Is it possible to somehow bypass this problem without resorting to paid services of the site administration?
Thanks in advance.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question