From 26884dbb7c62432a77bf9a07c5bf38a7a0705be1 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Sun, 22 Sep 2024 10:45:41 +0200 Subject: [PATCH] fix publicearn https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/161 --- Bypass_All_Shortlinks.meta.js | 4 ++-- Bypass_All_Shortlinks.user.js | 14 ++++++++------ extra_bypasses/extra_bypasses.user.js | 12 +++++++----- supported_sites.txt | 2 +- 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 6fb1c85..b2425ac 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.7.8 +// @version 92.7.9 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -734,7 +734,7 @@ // @include /wp2host.com/ // @include /pahe.win/ // @include /ontechhindi.com/ -// @include /newedutopics.com/ +// @include /thelatintwistcafe.com/ // @include /newshuta.in/ // @include /blog.jytechs.in|mi.miuiflash.com|hypershort.com/ // @include /mayas.travel|eldiario24hrs.com|comomedir.com|aplicacionpara.org/ diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 6025a7c..f8504b6 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.7.8 +// @version 92.7.9 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -734,7 +734,7 @@ // @include /wp2host.com/ // @include /pahe.win/ // @include /ontechhindi.com/ -// @include /newedutopics.com/ +// @include /thelatintwistcafe.com/ // @include /newshuta.in/ // @include /blog.jytechs.in|mi.miuiflash.com|hypershort.com/ // @include /mayas.travel|eldiario24hrs.com|comomedir.com|aplicacionpara.org/ @@ -2396,10 +2396,12 @@ clickIfExists('div.code-block:nth-child(4) > center:nth-child(1) > div:nth-child(2) > a:nth-child(1) > button:nth-child(1)'); }) : null; - // publicearn.com - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/99 - /newedutopics.com/.test(url) ? afterDOMLoaded(function() { - clickIfExists('#tp98'); - clickIfExists('#btn6'); + // publicearn.com - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/99, https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/161 + /thelatintwistcafe.com/.test(url) ? afterDOMLoaded(function() { + count = 0; + setTimeout(function() {document.querySelector('#tp98').click();}, 3000); + setTimeout(function() {document.querySelector('#btn6').click();}, 3000); + setTimeout(function() {document.querySelector('#.tp-blue').click();}, 3000); }) : null; // inshorturl.com - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/104 diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index 6e0fe99..69a139d 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -164,7 +164,7 @@ // @include /wp2host.com/ // @include /pahe.win/ // @include /ontechhindi.com/ -// @include /newedutopics.com/ +// @include /thelatintwistcafe.com/ // @include /newshuta.in/ // @include /blog.jytechs.in|mi.miuiflash.com|hypershort.com/ // @include /mayas.travel|eldiario24hrs.com|comomedir.com|aplicacionpara.org/ @@ -818,10 +818,12 @@ clickIfExists('div.code-block:nth-child(4) > center:nth-child(1) > div:nth-child(2) > a:nth-child(1) > button:nth-child(1)'); }) : null; - // publicearn.com - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/99 - /newedutopics.com/.test(url) ? afterDOMLoaded(function() { - clickIfExists('#tp98'); - clickIfExists('#btn6'); + // publicearn.com - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/99, https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/161 + /thelatintwistcafe.com/.test(url) ? afterDOMLoaded(function() { + count = 0; + setTimeout(function() {document.querySelector('#tp98').click();}, 3000); + setTimeout(function() {document.querySelector('#btn6').click();}, 3000); + setTimeout(function() {document.querySelector('#.tp-blue').click();}, 3000); }) : null; // inshorturl.com - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/104 diff --git a/supported_sites.txt b/supported_sites.txt index 5eb4471..920cbc7 100644 --- a/supported_sites.txt +++ b/supported_sites.txt @@ -714,7 +714,7 @@ https://paster.so/* /wp2host.com/ /pahe.win/ /ontechhindi.com/ -/newedutopics.com/ +/thelatintwistcafe.com/ /newshuta.in/ /blog.jytechs.in|mi.miuiflash.com|hypershort.com/ /mayas.travel|eldiario24hrs.com|comomedir.com|aplicacionpara.org/