stop using bypass.vip free API and use bypass.city instead

https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/202
This commit is contained in:
Amm0ni4 2024-12-04 22:12:23 +01:00
parent 1d292bdcd3
commit 6caaceb42c
4 changed files with 7 additions and 30 deletions

View file

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

View file

@ -4,7 +4,7 @@
// @run-at document-start
// @author Amm0ni4
// @noframes
// @version 93.2.5
// @version 93.2.6
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
@ -1697,21 +1697,10 @@
const rParam = new URLSearchParams(window.location.search).get('r');
if (rParam) {window.location.assign(atob(rParam));};
// Linkvertise hard case and Admaven. First try bypass.vip, fallback to bypass.city
// Linkvertise hard case and Admaven using bypass.city
} else if (admavenRegex.test(window.location.href) || linkvertiseRegex.test(window.location.href) || lootlinkRegex.test(window.location.href)) {
fetch(`https://api.bypass.vip/bypass?url=${encodeURIComponent(window.location.href)}`)
.then(response => response.json())
.then(data => {
if (data.status == 'success') {
window.location.assign(data.result);
} else {
window.location.assign(`https://adbypass.org/bypass?bypass=${encodeURIComponent(window.location.href)}`);
}
})
.catch(err => {
window.location.assign(`https://adbypass.org/bypass?bypass=${encodeURIComponent(window.location.href)}`);
});
}
})();
// ----- ------ ----------

View file

@ -41,8 +41,7 @@ You can help by:
This script contains code I took, or redirects to free services from other developers for certain bypasses.
Thanks to:
- [BloggerPemula](https://greasyfork.org/users/810571-bloggerpemula)
- [bypass.vip](https://bypass.vip/) Free API used for l1nkv3rt1s3, Admaven and Loot-link.
- [bypass.city](https://bypass.city/) / [2](https://adbypass.org/) Fallback for bypass.vip.
- [bypass.city](https://bypass.city/) / [2](https://adbypass.org/) used for l1nkv3rt1s3, Admaven and Loot-link.
- [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.

View file

@ -20,21 +20,10 @@
const rParam = new URLSearchParams(window.location.search).get('r');
if (rParam) {window.location.assign(atob(rParam));};
// Linkvertise hard case and Admaven. First try bypass.vip, fallback to bypass.city
// Linkvertise hard case and Admaven using bypass.city
} else if (admavenRegex.test(window.location.href) || linkvertiseRegex.test(window.location.href) || lootlinkRegex.test(window.location.href)) {
fetch(`https://api.bypass.vip/bypass?url=${encodeURIComponent(window.location.href)}`)
.then(response => response.json())
.then(data => {
if (data.status == 'success') {
window.location.assign(data.result);
} else {
window.location.assign(`https://adbypass.org/bypass?bypass=${encodeURIComponent(window.location.href)}`);
}
})
.catch(err => {
window.location.assign(`https://adbypass.org/bypass?bypass=${encodeURIComponent(window.location.href)}`);
});
}
})();
// ----- ------ ----------