From 4a9e4e64159764ddb4f30586d658e6db8080abac Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Fri, 28 Feb 2025 01:31:43 +0100 Subject: [PATCH] remove check for valid url before redirect, it break some bypasses --- Bypass_All_Shortlinks.meta.js | 2 +- Bypass_All_Shortlinks.user.js | 10 +++++----- extra_bypasses/extra_bypasses.user.js | 8 ++++---- untouched_Bypass_All_Shortlinks_patched.user.js | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 72530c7..784af0f 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.20 +// @version 94.0.21 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index acc33ac..6805009 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.20 +// @version 94.0.21 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -1502,12 +1502,12 @@ const url = window.location.href const isValidUrl = url => /^(?:https?|ftp):\/\/(?:\w+\.){1,3}\w+(?:\/\S*)?$/.test(url); function redirect(finalUrl) { - if (isValidUrl(finalUrl)) { + //if (isValidUrl(finalUrl)) { //typeof redirectWithMessage === 'function' ? redirectWithMessage(finalUrl) : window.location.assign(finalUrl); window.location.assign(finalUrl); - } else { - showAlert("Invalid URL: " + finalUrl, 'error', 3000, '', 'secondary'); - } + //} else { + // showAlert("Invalid URL: " + finalUrl, 'error', 3000, '', 'secondary'); + //} } const fastRedirect = (url) => window.location.assign(url); const showClickMsg = () => typeof showAlert === 'function' ? showAlert("Button clicked...", 'success', 1000, '', 'secondary') : console.log("Button clicked..."); diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index af9df6f..b95db60 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -249,12 +249,12 @@ const url = window.location.href const isValidUrl = url => /^(?:https?|ftp):\/\/(?:\w+\.){1,3}\w+(?:\/\S*)?$/.test(url); function redirect(finalUrl) { - if (isValidUrl(finalUrl)) { + //if (isValidUrl(finalUrl)) { //typeof redirectWithMessage === 'function' ? redirectWithMessage(finalUrl) : window.location.assign(finalUrl); window.location.assign(finalUrl); - } else { - showAlert("Invalid URL: " + finalUrl, 'error', 3000, '', 'secondary'); - } + //} else { + // showAlert("Invalid URL: " + finalUrl, 'error', 3000, '', 'secondary'); + //} } const fastRedirect = (url) => window.location.assign(url); const showClickMsg = () => typeof showAlert === 'function' ? showAlert("Button clicked...", 'success', 1000, '', 'secondary') : console.log("Button clicked..."); diff --git a/untouched_Bypass_All_Shortlinks_patched.user.js b/untouched_Bypass_All_Shortlinks_patched.user.js index b5c76e9..9e257af 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.20 +// @version 94.0.21 // @match *://*/* // @grant GM_setValue // @grant GM_getValue