-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
19 lines (16 loc) · 723 Bytes
/
script.js
File metadata and controls
19 lines (16 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Select all buttons with the specified class
var buttons = document.querySelectorAll('._139m7k19w.yyosfla');
// Function to click each button with a delay
var clickWithDelay = (buttons, delay) => {
buttons.forEach((button, index) => {
var span = button.querySelector('._12p2gmq9'); // Select the span inside the button
if (span && span.innerText.trim() === "Se connecter") { // Check if the span text matches "Se connecter"
setTimeout(() => {
button.scrollIntoView(); // Scroll to the button
button.click(); // Click the button
}, index * delay); // Delay for each button
}
});
};
// Call the function with a 0.1-second delay (100 miliseconds)
clickWithDelay(buttons, 100);