add reload for profitsfly 18s message (by Anon991299)

https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/191
This commit is contained in:
Amm0ni4 2024-11-27 18:51:11 +01:00
parent 8a86ceedd3
commit 83bd406f6a
3 changed files with 12 additions and 2 deletions

View file

@ -4,7 +4,7 @@
// @run-at document-start
// @author Amm0ni4
// @noframes
// @version 93.1.16
// @version 93.1.17
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle

View file

@ -4,7 +4,7 @@
// @run-at document-start
// @author Amm0ni4
// @noframes
// @version 93.1.16
// @version 93.1.17
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
@ -3018,6 +3018,11 @@
return; // Exit the function after reloading
}
}
if (document.body.textContent.includes("Less than 18 seconds have passed between actions. Robot verification failed, please try again...")) {
if (!reloading) location.reload(); // Reload the page
reloading = true;
return; // Exit the function after reloading
}
}
// Helper function to determine if an element is visible and enabled

View file

@ -23,6 +23,11 @@
return; // Exit the function after reloading
}
}
if (document.body.textContent.includes("Less than 18 seconds have passed between actions. Robot verification failed, please try again...")) {
if (!reloading) location.reload(); // Reload the page
reloading = true;
return; // Exit the function after reloading
}
}
// Helper function to determine if an element is visible and enabled