From 83bd406f6a8456f5652578200e074efc93ea5c59 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Wed, 27 Nov 2024 18:51:11 +0100 Subject: [PATCH] add reload for profitsfly 18s message (by Anon991299) https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/191 --- Bypass_All_Shortlinks.meta.js | 2 +- Bypass_All_Shortlinks.user.js | 7 ++++++- extra_bypasses/profitsfly_reload_helper.user.js | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 2a630e4..a520d7c 100644 --- a/Bypass_All_Shortlinks.meta.js +++ b/Bypass_All_Shortlinks.meta.js @@ -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 diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 14f2f19..fa9b800 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -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 diff --git a/extra_bypasses/profitsfly_reload_helper.user.js b/extra_bypasses/profitsfly_reload_helper.user.js index 5109ad1..e49f126 100644 --- a/extra_bypasses/profitsfly_reload_helper.user.js +++ b/extra_bypasses/profitsfly_reload_helper.user.js @@ -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