diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 3c4500e..552cefc 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.4.13 +// @version 93.4.14 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index c7af1fd..5800c29 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.4.13 +// @version 93.4.14 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -3002,41 +3002,13 @@ if (domainRegex.test(window.location.href)) { // ---RELOAD DEAD-END PAGES--- - if (window.location.href.includes("/ref.php")) { - // Back up the current ref url - GM_setValue("profitsflyLocation", window.location.href); - } else if (document.readyState === "complete") { + if (document.readyState === "complete") { onWindowLoad(); } else { window.addEventListener('load', onWindowLoad); } function onWindowLoad() { - // Click the continue button if a backed up url was loaded in the last 5 seconds - if (document.body.textContent.includes("You have 2 active sessions.")) { - if ((Date.now() - GM_getValue("profitsflyGoBackTime", 0)) < 5000) { - for (const button of document.querySelectorAll("button")) { - if (button.textContent.trim() === "Continue") { - button.click(); - break; - } - } - } - return; - } - - // Load the backed up url - if (GM_getValue("profitsflyLocation") - && !/Less than.+passed between actions.+try again/.test(document.body.textContent) - && !document.body.textContent.includes("Please wait...")) { - const lastLocation = GM_getValue("profitsflyLocation"); - if (lastLocation) { - GM_setValue("profitsflyGoBackTime", Date.now()); - GM_setValue("profitsflyOverrideLocation", lastLocation); - window.location.href = lastLocation; - } - return; - } // Function to check for messages like "Click any ad & keep it open for 15 seconds to continue" and reload the page if one exists let reloading = false; diff --git a/extra_bypasses/profitsfly_reload_helper.user.js b/extra_bypasses/profitsfly_reload_helper.user.js index b50a7f2..2ece28c 100644 --- a/extra_bypasses/profitsfly_reload_helper.user.js +++ b/extra_bypasses/profitsfly_reload_helper.user.js @@ -12,41 +12,13 @@ if (domainRegex.test(window.location.href)) { // ---RELOAD DEAD-END PAGES--- - if (window.location.href.includes("/ref.php")) { - // Back up the current ref url - GM_setValue("profitsflyLocation", window.location.href); - } else if (document.readyState === "complete") { + if (document.readyState === "complete") { onWindowLoad(); } else { window.addEventListener('load', onWindowLoad); } function onWindowLoad() { - // Click the continue button if a backed up url was loaded in the last 5 seconds - if (document.body.textContent.includes("You have 2 active sessions.")) { - if ((Date.now() - GM_getValue("profitsflyGoBackTime", 0)) < 5000) { - for (const button of document.querySelectorAll("button")) { - if (button.textContent.trim() === "Continue") { - button.click(); - break; - } - } - } - return; - } - - // Load the backed up url - if (GM_getValue("profitsflyLocation") - && !/Less than.+passed between actions.+try again/.test(document.body.textContent) - && !document.body.textContent.includes("Please wait...")) { - const lastLocation = GM_getValue("profitsflyLocation"); - if (lastLocation) { - GM_setValue("profitsflyGoBackTime", Date.now()); - GM_setValue("profitsflyOverrideLocation", lastLocation); - window.location.href = lastLocation; - } - return; - } // Function to check for messages like "Click any ad & keep it open for 15 seconds to continue" and reload the page if one exists let reloading = false;