31 lines
1005 B
HTML
31 lines
1005 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Document</title>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
console.log(window.location.search);
|
|
try {
|
|
console.log(
|
|
Array.from(new URLSearchParams(location.search).entries())
|
|
); // [["https://ldlda.com", ""]]
|
|
} catch (e) {
|
|
console.error(e);
|
|
}
|
|
const cuhwuhfduhs = window.location.search.replace(/^\?/g, "");
|
|
if (cuhwuhfduhs) {
|
|
const bbugsbg = new URL(cuhwuhfduhs);
|
|
const hweriwehr = new URL(location);
|
|
hweriwehr.search = "";
|
|
if (bbugsbg != hweriwehr) {
|
|
// window.location.href = cuhwuhfduhs;
|
|
alert(`redir to ${bbugsbg}`);
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|