From 15768d5910aec7072f60e6237c7105750562eaed Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Sun, 6 Oct 2024 00:46:21 +0200 Subject: [PATCH] fix some rinku cases https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/165 --- Bypass_All_Shortlinks.meta.js | 2 +- Bypass_All_Shortlinks.user.js | 9 +++++---- extra_bypasses/rinku.user.js | 7 ++++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 84d0600..e01fc0a 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.8.9 +// @version 92.8.10 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 988dd69..2e97577 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.8.9 +// @version 92.8.10 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -2812,9 +2812,10 @@ function checkForMessage() { const paragraphs = document.getElementsByTagName("p"); for (let p of paragraphs) { - if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Continue") || p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Unlock Captcha")) { - console.log("Detected the message. Reloading the page..."); - //alert("Unbypassable page type. Reloading the page..."); + if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Continue")) { + location.reload(); // Reload the page + return; // Exit the function after reloading + } else if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Unlock Captcha") && isElementVisibleAndEnabled(p)) { location.reload(); // Reload the page return; // Exit the function after reloading } diff --git a/extra_bypasses/rinku.user.js b/extra_bypasses/rinku.user.js index 33e79ef..e526933 100644 --- a/extra_bypasses/rinku.user.js +++ b/extra_bypasses/rinku.user.js @@ -25,9 +25,10 @@ function checkForMessage() { const paragraphs = document.getElementsByTagName("p"); for (let p of paragraphs) { - if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Continue") || p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Unlock Captcha")) { - console.log("Detected the message. Reloading the page..."); - //alert("Unbypassable page type. Reloading the page..."); + if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Continue")) { + location.reload(); // Reload the page + return; // Exit the function after reloading + } else if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Unlock Captcha") && isElementVisibleAndEnabled(p)) { location.reload(); // Reload the page return; // Exit the function after reloading }