mirror of
https://github.com/hexahigh/noRef.git
synced 2025-12-11 20:15:09 +01:00
a
This commit is contained in:
parent
e6d2ef9b6f
commit
9b17d6f881
5
index.js
5
index.js
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user