Created
November 10, 2024 13:02
-
-
Save mikedigriz/ea5d0df6288d6f99b906b374be3c435a to your computer and use it in GitHub Desktop.
Отмена автоподписки в фиксированном стейкинге Binance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Вставить в консоль на f12 | |
function handleEvents() { | |
// Находим все элементы с нужным селектором | |
const elements = document.querySelectorAll('.bn-switch.bn-switch__regular.data-size-small.checked .bn-switch-dot'); | |
// Проходим по каждому элементу и имитируем клик | |
elements.forEach(element => { | |
element.click(); | |
}); | |
// Находим кнопку подтверждения | |
const confirmButton = document.querySelector('.bn-button.bn-button__primary.data-size-middle'); | |
// Нажимаем на кнопку подтверждения | |
if (confirmButton) { | |
confirmButton.click(); | |
} | |
// Проверяем наличие кнопки с тестовым ID "error-dialog-cancel-button-SOMEID" | |
const cancelButton = document.querySelector('[data-testid="error-dialog-cancel-button-SOMEID"]'); | |
// Нажимаем на кнопку отмены, если она существует | |
if (cancelButton) { | |
cancelButton.click(); | |
} | |
} | |
(function loop() { | |
handleEvents(); | |
setTimeout(loop, 2000); | |
})(); | |
// Обработка комбинации клавиш Ctrl+C | |
window.onkeydown = function(event) { | |
if ((event.key === 'c' || event.keyCode === 67) && event.ctrlKey) { | |
alert('Остановлено пользователем.'); | |
window.onkeydown = null; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment