diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index b70b3da..126af12 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 92.7.2 +// @version 92.7.3 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index d7b52fd..4963b8b 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 92.7.2 +// @version 92.7.3 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -2673,7 +2673,11 @@ if (getTargetPageRequest.status !== 200) return; const targetPageResponse = await getTargetPageRequest.json(); const targetPageURL = targetPageResponse['data']['getDetailPageTarget']['url']; - window.location.href = targetPageURL; + if (targetPageURL === null || !targetPageURL || targetPageURL.trim() === "") { + window.location.href = 'https://adbypass.org/bypass?bypass=' + window.location.href; + } else { + window.location.href = targetPageURL; + } } } diff --git a/extra_bypasses/linkvertise.user.js b/extra_bypasses/linkvertise.user.js index 6819493..adca6f6 100644 --- a/extra_bypasses/linkvertise.user.js +++ b/extra_bypasses/linkvertise.user.js @@ -86,7 +86,11 @@ if (getTargetPageRequest.status !== 200) return; const targetPageResponse = await getTargetPageRequest.json(); const targetPageURL = targetPageResponse['data']['getDetailPageTarget']['url']; - window.location.href = targetPageURL; + if (targetPageURL === null || !targetPageURL || targetPageURL.trim() === "") { + window.location.href = 'https://adbypass.org/bypass?bypass=' + window.location.href; + } else { + window.location.href = targetPageURL; + } } }