From 88280f1163c25a2a31c4b4a75621ef972762c773 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Fri, 28 Feb 2025 01:28:31 +0100 Subject: [PATCH] remove message before redirect because it breaks the bypass in some cases --- Bypass_All_Shortlinks.meta.js | 2 +- Bypass_All_Shortlinks.user.js | 5 +++-- extra_bypasses/extra_bypasses.user.js | 3 ++- untouched_Bypass_All_Shortlinks_patched.user.js | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index b4ec29a..72530c7 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 94.0.19 +// @version 94.0.20 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 8e5dd6b..acc33ac 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 94.0.19 +// @version 94.0.20 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -1503,7 +1503,8 @@ const isValidUrl = url => /^(?:https?|ftp):\/\/(?:\w+\.){1,3}\w+(?:\/\S*)?$/.test(url); function redirect(finalUrl) { if (isValidUrl(finalUrl)) { - typeof redirectWithMessage === 'function' ? redirectWithMessage(finalUrl) : window.location.assign(finalUrl); + //typeof redirectWithMessage === 'function' ? redirectWithMessage(finalUrl) : window.location.assign(finalUrl); + window.location.assign(finalUrl); } else { showAlert("Invalid URL: " + finalUrl, 'error', 3000, '', 'secondary'); } diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index df6a53a..af9df6f 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -250,7 +250,8 @@ const isValidUrl = url => /^(?:https?|ftp):\/\/(?:\w+\.){1,3}\w+(?:\/\S*)?$/.test(url); function redirect(finalUrl) { if (isValidUrl(finalUrl)) { - typeof redirectWithMessage === 'function' ? redirectWithMessage(finalUrl) : window.location.assign(finalUrl); + //typeof redirectWithMessage === 'function' ? redirectWithMessage(finalUrl) : window.location.assign(finalUrl); + window.location.assign(finalUrl); } else { showAlert("Invalid URL: " + finalUrl, 'error', 3000, '', 'secondary'); } diff --git a/untouched_Bypass_All_Shortlinks_patched.user.js b/untouched_Bypass_All_Shortlinks_patched.user.js index 10f506c..b5c76e9 100644 --- a/untouched_Bypass_All_Shortlinks_patched.user.js +++ b/untouched_Bypass_All_Shortlinks_patched.user.js @@ -37,7 +37,7 @@ // @namespace Violentmonkey Scripts // @run-at document-start // @author Bloggerpemula -// @version 94.0.19 +// @version 94.0.20 // @match *://*/* // @grant GM_setValue // @grant GM_getValue