From 80b953d92543055369b83c42ece5d5bd89cb840e Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Sun, 6 Oct 2024 16:08:28 +0200 Subject: [PATCH] improve rinku.me --- Bypass_All_Shortlinks.meta.js | 2 +- Bypass_All_Shortlinks.user.js | 7 ++----- extra_bypasses/rinku.user.js | 5 +---- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 67e5272..159f07d 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.11 +// @version 92.8.12 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index b02a8c1..bbae298 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.11 +// @version 92.8.12 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -2812,10 +2812,7 @@ 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")) { - 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)) { + if (/.*Click.+Ad.*To Continue.*/is.test(p.textContent) || (/.*Click.+Ad.*To.+Unlock.+Captcha.*/is.test(p.textContent) && 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 9ed0083..c32a5b7 100644 --- a/extra_bypasses/rinku.user.js +++ b/extra_bypasses/rinku.user.js @@ -25,10 +25,7 @@ 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")) { - 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)) { + if (/.*Click.+Ad.*To Continue.*/is.test(p.textContent) || (/.*Click.+Ad.*To.+Unlock.+Captcha.*/is.test(p.textContent) && isElementVisibleAndEnabled(p))) { location.reload(); // Reload the page return; // Exit the function after reloading }