I tried applying this using ChatGPT, but it didn't work for me. Can you tell me where to put this code to make my code work?
// Функция для эмуляции нажатия мыши внутри элемента <canvas data-sentry-element="Stage"> function simulateMouseClickInCanvas() { const canvas = document.querySelector('canvas[data-sentry-element="Stage"]'); if (!canvas) { console.error("Элемент <canvas> не найден."); return; } const rect = canvas.getBoundingClientRect(); // Выбираем случайные координаты внутри элемента <canvas> const randomX = Math.random() * rect.width + rect.left; const randomY = Math.random() * rect.height + rect.top; // Создаём события мыши const mouseDownEvent = new MouseEvent("mousedown", { bubbles: true, cancelable: true, clientX: randomX, clientY: randomY, }); const mouseUpEvent = new MouseEvent("mouseup", { bubbles: true, cancelable: true, clientX: randomX, clientY: randomY, }); const clickEvent = new MouseEvent("click", { bubbles: true, cancelable: true, clientX: randomX, clientY: randomY, }); // Эмулируем события canvas.dispatchEvent(mouseDownEvent); canvas.dispatchEvent(mouseUpEvent); canvas.dispatchEvent(clickEvent); } // Функция для выполнения кликов с рандомной задержкой function performRandomClicksInCanvas(maxClicks) { let clicksCount = 0; function clickWithRandomDelay() { if (clicksCount >= maxClicks) { console.log("Все клики выполнены"); return; } const delay = Math.random() * (2000 - 100) + 100; // Рандомная задержка от 0.1 до 2 секунд setTimeout(() => { simulateMouseClickInCanvas(); clicksCount++; console.log(`Клик ${clicksCount} выполнен (задержка: ${Math.round(delay)} мс)`); clickWithRandomDelay(); // Рекурсивный вызов для следующего клика }, delay); } clickWithRandomDelay(); } // Запуск выполнения 10 кликов performRandomClicksInCanvas(10);Browser extensions not working at mobile fingerprints
-
Is there any way to go about this?
-
F Fox moved this topic from Feature request on
-
@nosnossos92 said in Browser extensions not working at mobile fingerprints:
Is there any way to go about this?
https://community.bablosoft.com/topic/24421/browserautomationstudio-25-6-0-has-been-released/6
-
I don't think the solution is working
-
So nothing will work?
-
Still needed
-
@nosnossos92 said in Browser extensions not working at mobile fingerprints:
Still needed
describe the problem in more detail, which tags you use to get a fingerprint and which browser extension you are trying to use
-
Any mobile fingerprint tag (android, chrome) makes it not possible to use any chrome browser extension at all, the same problem as in the message you tagged. the person also said the solution was not working
-
ERR_BLOCKED_BY_CLIENT from chrome message
-
-
@nosnossos92 said in Browser extensions not working at mobile fingerprints:
Is not possible for me to do anything?
I have no other solution
-
If possible please make request to developer to enable/disable this block in next update