From a391059044ba626cf9b0aed8bc44cfaa915293d5 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Mon, 20 Jan 2025 18:21:18 +0100 Subject: [PATCH] improved (now direct) tpi.li bypass by Dxian https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/224 --- Bypass_All_Shortlinks.meta.js | 2 +- Bypass_All_Shortlinks.user.js | 12 +++++++++++- README.md | 2 +- extra_bypasses/extra_bypasses.user.js | 10 ++++++++++ 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 4aa6c84..5ef82e4 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 93.4.23 +// @version 93.4.24 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index e85867a..77a5019 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 93.4.23 +// @version 93.4.24 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -2608,6 +2608,16 @@ }); } + // https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/224 + /tii.la|oei.la|iir.la|tvi.la|oii.la|tpi.li|lnbz.la/.test(url) ? afterDOMLoaded(function() { + const regex = /aHR0c[^"]+/g; + const matches = document.documentElement.innerHTML.match(regex); + if (matches && matches.length > 0) { + const decodedUrl = atob(matches[0]); + window.location.href = decodedUrl; + } + }) : null; + // https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-11280464 /tii.la|oei.la|iir.la|tvi.la|oii.la|tpi.li|lnbz.la/.test(url) ? afterWindowLoaded(function() { const form = document.querySelector('#link-view > form'); diff --git a/README.md b/README.md index 02d1bc1..e9c3587 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ This script contains code I took, or redirects to free services from other devel Thanks to: - [BloggerPemula](https://greasyfork.org/users/810571-bloggerpemula) - [bypass.city](https://bypass.city/) / [2](https://adbypass.org/) used for l1nkv3rt1s3, Admaven and Loot-link. -- Contributers to this repository who have submitted pull requests: Anon991299, mouro, trapgod1, CaptainCaffeine, IntNinja. +- Contributers to this repository who have submitted pull requests: Anon991299, mouro, trapgod1, CaptainCaffeine, IntNinja, Dxian. - [StephenP](https://greasyfork.org/users/104167-stephenp) for the filecrypt bypass. - [Rust1667](https://greasyfork.org/users/980489-rust1667) for some bypasses. - [AdamWr](https://github.com/AdamWr) from AdGuard for the mega-enlace and acortalink.me bypasses. diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index 386b905..b894adb 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -1167,6 +1167,16 @@ }); } + // https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/224 + /tii.la|oei.la|iir.la|tvi.la|oii.la|tpi.li|lnbz.la/.test(url) ? afterDOMLoaded(function() { + const regex = /aHR0c[^"]+/g; + const matches = document.documentElement.innerHTML.match(regex); + if (matches && matches.length > 0) { + const decodedUrl = atob(matches[0]); + window.location.href = decodedUrl; + } + }) : null; + // https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-11280464 /tii.la|oei.la|iir.la|tvi.la|oii.la|tpi.li|lnbz.la/.test(url) ? afterWindowLoaded(function() { const form = document.querySelector('#link-view > form');