From 6f3243576ef1ba215420c4cb7db22bc5b81e1a03 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Wed, 8 May 2024 12:19:01 +0200 Subject: [PATCH] re-enable timer skipping for psa --- Bypass_All_Shortlinks.meta.js | 2 +- Bypass_All_Shortlinks.user.js | 12 ++++++++---- extra_bypasses/tiktokcounter_psa.js | 10 +++++++--- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 6f2869b..433ab86 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.7 +// @version 91.9.8 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 983be6b..9c21e12 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.7 +// @version 91.9.8 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -2929,9 +2929,13 @@ if (tiktokcounterRegex.test(window.location.href)) { preventForcedFocusOnWindow(); - //setInterval(function(){window.wT9882=0;},1000); - setInterval(function(){window.isAdClickDone=true;},1000); - document.addEventListener('DOMContentLoaded', ()=> {const i = document.createElement('iframe');i.style = 'height:0;width:0;border:0';i.id = 'a';document.body.appendChild(i);i.focus();}); + document.addEventListener('DOMContentLoaded', function() { + if (document.documentElement.outerHTML.includes("/psa'")) { + setInterval(function(){window.wT9882=0;},5000); + } + setInterval(function(){window.isAdClickDone=true;},500); + ()=> {const i = document.createElement('iframe');i.style = 'height:0;width:0;border:0';i.id = 'a';document.body.appendChild(i);i.focus();}; + }); } //document.addEventListener('DOMContentLoaded', function() { diff --git a/extra_bypasses/tiktokcounter_psa.js b/extra_bypasses/tiktokcounter_psa.js index 4254a4b..0b0fd0f 100644 --- a/extra_bypasses/tiktokcounter_psa.js +++ b/extra_bypasses/tiktokcounter_psa.js @@ -102,9 +102,13 @@ if (tiktokcounterRegex.test(window.location.href)) { preventForcedFocusOnWindow(); - //setInterval(function(){window.wT9882=0;},1000); - setInterval(function(){window.isAdClickDone=true;},1000); - document.addEventListener('DOMContentLoaded', ()=> {const i = document.createElement('iframe');i.style = 'height:0;width:0;border:0';i.id = 'a';document.body.appendChild(i);i.focus();}); + document.addEventListener('DOMContentLoaded', function() { + if (document.documentElement.outerHTML.includes("/psa'")) { + setInterval(function(){window.wT9882=0;},5000); + } + setInterval(function(){window.isAdClickDone=true;},500); + ()=> {const i = document.createElement('iframe');i.style = 'height:0;width:0;border:0';i.id = 'a';document.body.appendChild(i);i.focus();}; + }); } //document.addEventListener('DOMContentLoaded', function() {