-
Notifications
You must be signed in to change notification settings - Fork 1
/
insta.html
35 lines (33 loc) · 1011 Bytes
/
insta.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
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript">
function unescapeHtml(escaped_str) {
var div = document.createElement('div');
div.innerHTML = escaped_str;
var child = div.childNodes[0];
return child ? child.nodeValue : null;
}
function validateProtocol(url) {
var parser = document.createElement('a');
parser.href = url;
var protocol = parser.protocol.toLowerCase();
if ([ 'javascript:', 'vbscript:', 'data:', 'ftp:',':' , ' '].indexOf(protocol) < 0) {
return url;
}
return null;
}
function validate(url) {
var unescaped_value = unescapeHtml(url);
if (unescaped_value && validateProtocol(unescaped_value)) {
return unescaped_value;
}
return '/';
} window.onload = function() {
var initial_redirect = "https://adobeaero.app.link/ECFKhe91y7";
window.top.location = validate(initial_redirect);
};
</script>
<iframe id="l" width="1" height="1" style="visibility:hidden"></iframe>
</body>
</html>