forked from xem/inspector-gadget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (71 loc) · 2.38 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<!--
To inspect pages using a bookmarklet, create a bookmark with the following address:
javascript:(function(){window.open('http://staticresource.com/inspect?'+window.location.href)})()
-->
<meta charset=utf-8>
<meta name=viewport content="width=device-width, initial-scale=1">
<title>View Source</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/paraiso-dark.min.css" rel=stylesheet>
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:300,400,500,600,700,900" rel=stylesheet>
<style>
html, body, pre, code {
box-sizing: border-box;
-webkit-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: normal;
font-family: 'Fira Code', 'Source Code Pro', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
white-space: pre-wrap;
word-wrap: break-word;
font-kerning: auto;
font-size: 16pt;
line-height: 1.5;
background: #2f1e2e;
color: #839496;
margin: 0;
padding: .25em;
}
::-moz-selection {
color: #002b36;
background: #eee8d5;
}
::selection {
color: #002b36;
background: #eee8d5;
}
</style>
<pre><code></code></pre>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script>
<script>
var output = document.querySelector('code')
var url = window.location.search.substring(1)
var xhr = new XMLHttpRequest
try {
xhr.open('GET', url, false)
xhr.send(null)
}
catch(e) {
xhr.open('GET', 'proxy.php?url=' + url, false)
xhr.send(null)
}
if (xhr.status == 200) {
output.innerHTML = (xhr.responseText
.replace(/&/g,'&')
.replace(/</g,'<')
.replace(/[ ]/g,' ')
.replace(/[ ]/g,' '))
}
document.title = 'View Src: ' + url
if (url.split('.')[1] == 'css'
|| url.split('.')[1] == 'eqcss'
|| url.split('.')[1] == 'jic') {
output.className = 'css'
} else if (url.split('.')[1]=='js'){
output.className = 'js'
} else {
output.className = 'html'
}
hljs.initHighlightingOnLoad()
</script>