From 069748a825e535e87545a622fbc5fda41818bcf4 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Sun, 5 May 2024 17:11:21 +0200 Subject: [PATCH] fix detection of faucets using tiktokcounter https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/45 --- Bypass_All_Shortlinks.meta.js | 2 +- Bypass_All_Shortlinks.user.js | 8 +++++--- extra_bypasses/{tiktokcounter.js => tiktokcounter_psa.js} | 6 ++++-- 3 files changed, 10 insertions(+), 6 deletions(-) rename extra_bypasses/{tiktokcounter.js => tiktokcounter_psa.js} (95%) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 232e502..3c263c4 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 91.9.1 +// @version 91.9.2 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 99fa802..07bd9c4 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 91.9.1 +// @version 91.9.2 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -2927,7 +2927,7 @@ if (tiktokcounterRegex.test(window.location.href)) { preventForcedFocusOnWindow(); - setInterval(function(){window.wT9882=0;},1000); + //setInterval(function(){window.wT9882=0;},1000); } //document.addEventListener('DOMContentLoaded', function() { @@ -2939,7 +2939,9 @@ if (tiktokcounterRegex.test(window.location.href)) { // Skip timer - // setInterval(function(){window.wT9882=0;},1000); + if (document.documentElement.outerHTML.includes("/psa'")) { + setInterval(function(){window.wT9882=0;},1000); + } // Auto click buttons if (true){ diff --git a/extra_bypasses/tiktokcounter.js b/extra_bypasses/tiktokcounter_psa.js similarity index 95% rename from extra_bypasses/tiktokcounter.js rename to extra_bypasses/tiktokcounter_psa.js index e8947e6..f1662c3 100644 --- a/extra_bypasses/tiktokcounter.js +++ b/extra_bypasses/tiktokcounter_psa.js @@ -102,7 +102,7 @@ if (tiktokcounterRegex.test(window.location.href)) { preventForcedFocusOnWindow(); - setInterval(function(){window.wT9882=0;},1000); + //setInterval(function(){window.wT9882=0;},1000); } //document.addEventListener('DOMContentLoaded', function() { @@ -114,7 +114,9 @@ if (tiktokcounterRegex.test(window.location.href)) { // Skip timer - // setInterval(function(){window.wT9882=0;},1000); + if (document.documentElement.outerHTML.includes("/psa'")) { + setInterval(function(){window.wT9882=0;},1000); + } // Auto click buttons if (true){