profitsfly bug fix by Anon991299

https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/191
This commit is contained in:
Amm0ni4 2025-01-02 15:29:24 +01:00
parent 165e61b227
commit 46e6b39c51
3 changed files with 6 additions and 6 deletions

View file

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

View file

@ -4,7 +4,7 @@
// @run-at document-start // @run-at document-start
// @author Amm0ni4 // @author Amm0ni4
// @noframes // @noframes
// @version 93.4.2 // @version 93.4.3
// @grant GM_setValue // @grant GM_setValue
// @grant GM_getValue // @grant GM_getValue
// @grant GM_addStyle // @grant GM_addStyle
@ -2946,7 +2946,7 @@
// Load the backed up url // Load the backed up url
if (GM_getValue("profitsflyLocation") if (GM_getValue("profitsflyLocation")
&& !document.body.textContent.includes("Less than 18 seconds have passed between actions. Robot verification failed, please try again...") && !/Less than.+passed between actions.+try again/.test(document.body.textContent)
&& !document.body.textContent.includes("Please wait...")) { && !document.body.textContent.includes("Please wait...")) {
const lastLocation = GM_getValue("profitsflyLocation"); const lastLocation = GM_getValue("profitsflyLocation");
if (lastLocation) { if (lastLocation) {
@ -2968,7 +2968,7 @@
return; // Exit the function after reloading 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 (/Less than.+passed between actions.+try again/.test(document.body.textContent)) {
if (!reloading) location.reload(); // Reload the page if (!reloading) location.reload(); // Reload the page
reloading = true; reloading = true;
return; // Exit the function after reloading return; // Exit the function after reloading

View file

@ -37,7 +37,7 @@
// Load the backed up url // Load the backed up url
if (GM_getValue("profitsflyLocation") if (GM_getValue("profitsflyLocation")
&& !document.body.textContent.includes("Less than 18 seconds have passed between actions. Robot verification failed, please try again...") && !/Less than.+passed between actions.+try again/.test(document.body.textContent)
&& !document.body.textContent.includes("Please wait...")) { && !document.body.textContent.includes("Please wait...")) {
const lastLocation = GM_getValue("profitsflyLocation"); const lastLocation = GM_getValue("profitsflyLocation");
if (lastLocation) { if (lastLocation) {
@ -59,7 +59,7 @@
return; // Exit the function after reloading 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 (/Less than.+passed between actions.+try again/.test(document.body.textContent)) {
if (!reloading) location.reload(); // Reload the page if (!reloading) location.reload(); // Reload the page
reloading = true; reloading = true;
return; // Exit the function after reloading return; // Exit the function after reloading