From 031942b3a29b27050fb04cbb9e806a69fb9d1334 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Wed, 16 Oct 2024 17:50:34 +0200 Subject: [PATCH] fix fc-lc --- Bypass_All_Shortlinks.meta.js | 2 +- Bypass_All_Shortlinks.user.js | 16 +++++++--------- extra_bypasses/extra_bypasses.user.js | 14 ++++++-------- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index a908019..c1d0710 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.28 +// @version 92.8.29 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 18295cd..44f711c 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.28 +// @version 92.8.29 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -1814,17 +1814,15 @@ /test.shrinkurl.org/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.get-link')}) : null; //fc-lc - /* /^https:\/\/(fc-lc\.com|fc-lc\.xyz)\/.*$/.test(url) ? afterWindowLoaded(function() { - if (checkCloudflareCaptchaSolved() && checkGoogleRecaptchaSolved()) { - clickWithDelay('#invisibleCaptchaShortlink', 3000); - } - }) : null; */ + /^https:\/\/(fc-lc\.com|fc-lc\.xyz)\/.*$/.test(url) ? afterWindowLoaded(function() { + clickIfExists('#invisibleCaptchaShortlink'); + }) : null; // extra steps for some fc-lc cases: https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-8736277 /^https:\/\/(fitdynamos\.com|gamizo\.com|tmail\.io)\/.*$/.test(url) ? afterWindowLoaded(function() { clickIfExists('#next'); - //clickIfVisible('#scroll'); - //clickIfVisible('#glink'); - //clickIfVisible('#surl'); + clickIfExists('#scroll:not(.hidden)'); + clickIfExists('#glink:not(.hidden)'); + clickIfExists('#surl'); }) : null; //cpmlink.net diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index e68f377..cdbca2e 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -323,17 +323,15 @@ /test.shrinkurl.org/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.get-link')}) : null; //fc-lc - /* /^https:\/\/(fc-lc\.com|fc-lc\.xyz)\/.*$/.test(url) ? afterWindowLoaded(function() { - if (checkCloudflareCaptchaSolved() && checkGoogleRecaptchaSolved()) { - clickWithDelay('#invisibleCaptchaShortlink', 3000); - } - }) : null; */ + /^https:\/\/(fc-lc\.com|fc-lc\.xyz)\/.*$/.test(url) ? afterWindowLoaded(function() { + clickIfExists('#invisibleCaptchaShortlink'); + }) : null; // extra steps for some fc-lc cases: https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-8736277 /^https:\/\/(fitdynamos\.com|gamizo\.com|tmail\.io)\/.*$/.test(url) ? afterWindowLoaded(function() { clickIfExists('#next'); - //clickIfVisible('#scroll'); - //clickIfVisible('#glink'); - //clickIfVisible('#surl'); + clickIfExists('#scroll:not(.hidden)'); + clickIfExists('#glink:not(.hidden)'); + clickIfExists('#surl'); }) : null; //cpmlink.net