-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsaver.html
65 lines (58 loc) · 2.75 KB
/
saver.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!--This stuff is used in link previews-->
<!--When you post something on social medias, for example, Steam Chat, Twitter, etc-->
<!--This info is used-->
<!--To see what I mean, go to https://www.opengraphpreview.com/ and paste in the homepage link for this website-->
<!--You'll see what I mean-->
<!--OpenGraph metadata: used in basically everything except Twitter-->
<meta property="og:title" content="saverofthewo landing page - BluePlay Games" />
<meta property="og:url" content="https://blueplay-games.github.io/npxl" />
<meta property="og:type" content="website" /><!--I actually don't know what this does-->
<meta property="og:image" content="img/BluePlay_Placeholder_CHANGEIT.png" /><!--This IS a placeholder. You WILL change it.-->
<meta property="og:description" content="saverofthewo's website - soft redirect." />
<!--Twitter metadata: why-->
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="blueplay-games.github.io" />
<meta property="twitter:url" content="https://blueplay-games.github.io/npxl" />
<meta name="twitter:title" content="saverofthewo landing page - BluePlay Games" />
<meta name="twitter:image" content="img/BluePlay_Placeholder_CHANGEIT.png" />
<meta name="twitter:description" content="saverofthewo's website - soft redirect." />
<!--This is for search engines, it must be keyword optimized-->
<meta name="description" content="saverofthewo landing page at BluePlay Games Entertainment BlueCube Games Entertainment Fun Games To Play Online Free GitHub Coding github.io" />
<link rel="favicon" href="favicon.ico" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" href="site.css" />
<title>Soft redirect</title>
</head>
<body>
<header>
<a href="/">Home</a>
<hr />
</header>
<h1>saverofthewo website</h1>
<p>This website is not hosted on GitHub Pages.</p>
<button id="yes">Ok</button>
<script>
document.querySelector("#yes").onclick = function() {
window.top.postMessage("redirect", "*");
}
function onMessage(msg) {
if (msg.data == "redirect") {
alert("ok here my website");
redirectKeepInHistory("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
}
}
function redirectKeepInHistory(url) {
var a = document.createElement("a");
a.href = url;
a.click();
}
window.addEventListener("message", onMessage);
</script>
</body>
</html>