From 571985f81fdb1fcb68927de3c32e7d39ec46f023 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Tue, 15 Oct 2024 17:17:13 +0200 Subject: [PATCH] add shrtbr.com https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/122 --- Bypass_All_Shortlinks.meta.js | 4 +++- Bypass_All_Shortlinks.user.js | 8 +++++++- extra_bypasses/extra_bypasses.user.js | 6 ++++++ supported_sites.txt | 2 ++ 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 9db332f..b73a436 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.23 +// @version 92.8.24 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -734,6 +734,8 @@ // @include /www.saferoms.com\/\?go=/ // @include /hdpastes.com\/\?v=/ // @include /shrinkforearn.in/ +// @include /encurtads.net/ +// @include /shrtbr.com/ // @include /filecrypt.(cc|co)/ // @include /^(https?:\/\/)(?!(bypass.city|adbypass.org))(linkvertise.com|(linkvertise|link-to).net)/ // @include /(mega-enlace|acortados).com/ diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 31d351f..2f7e96e 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.23 +// @version 92.8.24 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -734,6 +734,8 @@ // @include /www.saferoms.com\/\?go=/ // @include /hdpastes.com\/\?v=/ // @include /shrinkforearn.in/ +// @include /encurtads.net/ +// @include /shrtbr.com/ // @include /filecrypt.(cc|co)/ // @include /^(https?:\/\/)(?!(bypass.city|adbypass.org))(linkvertise.com|(linkvertise|link-to).net)/ // @include /(mega-enlace|acortados).com/ @@ -2417,6 +2419,10 @@ const clickIfRecaptchaSolved = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (window.grecaptcha.getResponse().length !== 0) { clearInterval(intervalId); button.click(); } }, 1000); }; /hdpastes.com\/\?v=/.test(url) ? afterDOMLoaded(function() {clickIfRecaptchaSolved('.btn-success');}) : null; + // shrtbr.com/aaNEJEXp - t.me/xred2 - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/122 + /encurtads.net/.test(url) ? afterDOMLoaded(function() { redirect(atob(document.querySelector('#wpsafe-link > a:nth-child(1)').getAttribute('onclick').match(/'(https:\/\/[^']+)'/)[1].split('safelink_redirect=')[1]).match(/"safelink":"(.*?)"/)[1]);}) : null; + /shrtbr.com/.test(url) ? afterDOMLoaded(function() {redirectIfExists('a.get-link.btn.btn-lg.btn-success:not(.disabled):not(div.banner:nth-child(4) > div:nth-child(1) > a:nth-child(1))');}) : null; + })(); (function() { diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index e46fda6..cd04125 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -184,6 +184,8 @@ // @include /www.saferoms.com\/\?go=/ // @include /hdpastes.com\/\?v=/ // @include /shrinkforearn.in/ +// @include /encurtads.net/ +// @include /shrtbr.com/ // @run-at document-start // ==/UserScript== @@ -925,6 +927,10 @@ const clickIfRecaptchaSolved = (selector) => { let intervalId = setInterval(() => { let button = document.querySelector(selector); if (window.grecaptcha.getResponse().length !== 0) { clearInterval(intervalId); button.click(); } }, 1000); }; /hdpastes.com\/\?v=/.test(url) ? afterDOMLoaded(function() {clickIfRecaptchaSolved('.btn-success');}) : null; + // shrtbr.com/aaNEJEXp - t.me/xred2 - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/122 + /encurtads.net/.test(url) ? afterDOMLoaded(function() { redirect(atob(document.querySelector('#wpsafe-link > a:nth-child(1)').getAttribute('onclick').match(/'(https:\/\/[^']+)'/)[1].split('safelink_redirect=')[1]).match(/"safelink":"(.*?)"/)[1]);}) : null; + /shrtbr.com/.test(url) ? afterDOMLoaded(function() {redirectIfExists('a.get-link.btn.btn-lg.btn-success:not(.disabled):not(div.banner:nth-child(4) > div:nth-child(1) > a:nth-child(1))');}) : null; + })(); (function() { diff --git a/supported_sites.txt b/supported_sites.txt index 9551503..f5b270a 100644 --- a/supported_sites.txt +++ b/supported_sites.txt @@ -714,6 +714,8 @@ https://paster.so/* /www.saferoms.com\/\?go=/ /hdpastes.com\/\?v=/ /shrinkforearn.in/ +/encurtads.net/ +/shrtbr.com/ /filecrypt.(cc|co)/ /^(https?:\/\/)(?!(bypass.city|adbypass.org))(linkvertise.com|(linkvertise|link-to).net)/ /(mega-enlace|acortados).com/