This commit is contained in:
Boof 2023-08-23 14:50:40 +02:00 committed by GitHub
parent e6d2ef9b6f
commit 9b17d6f881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,14 @@ const currentUrl = window.location.href
var url = new URL(currentUrl);
var c = url.searchParams.get("url");
var o = url.searchParams.get("obf");
// Check that there is something there otherwhise it will get stuck in a loop
if(c) {
// Check if url is obfuscated
if (obf) {
c = atob(c)
}
if (c.startsWith("http://") || c.startsWith("https://")) {
window.location = (c)
} else {