improved (now direct) tpi.li bypass by Dxian

https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/224
This commit is contained in:
Amm0ni4 2025-01-20 18:21:18 +01:00
parent fe8f4c5de2
commit a391059044
4 changed files with 23 additions and 3 deletions

View file

@ -4,7 +4,7 @@
// @run-at document-start // @run-at document-start
// @author Amm0ni4 // @author Amm0ni4
// @noframes // @noframes
// @version 93.4.23 // @version 93.4.24
// @grant GM_setValue // @grant GM_setValue
// @grant GM_getValue // @grant GM_getValue
// @grant GM_addStyle // @grant GM_addStyle

View file

@ -4,7 +4,7 @@
// @run-at document-start // @run-at document-start
// @author Amm0ni4 // @author Amm0ni4
// @noframes // @noframes
// @version 93.4.23 // @version 93.4.24
// @grant GM_setValue // @grant GM_setValue
// @grant GM_getValue // @grant GM_getValue
// @grant GM_addStyle // @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 // 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() { /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'); const form = document.querySelector('#link-view > form');

View file

@ -48,7 +48,7 @@ This script contains code I took, or redirects to free services from other devel
Thanks to: Thanks to:
- [BloggerPemula](https://greasyfork.org/users/810571-bloggerpemula) - [BloggerPemula](https://greasyfork.org/users/810571-bloggerpemula)
- [bypass.city](https://bypass.city/) / [2](https://adbypass.org/) used for l1nkv3rt1s3, Admaven and Loot-link. - [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. - [StephenP](https://greasyfork.org/users/104167-stephenp) for the filecrypt bypass.
- [Rust1667](https://greasyfork.org/users/980489-rust1667) for some bypasses. - [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. - [AdamWr](https://github.com/AdamWr) from AdGuard for the mega-enlace and acortalink.me bypasses.

View file

@ -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 // 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() { /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'); const form = document.querySelector('#link-view > form');