-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathext_probe.html
94 lines (83 loc) · 2.5 KB
/
ext_probe.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
90
91
92
93
<!DOCTYPE html>
<html>
<head>
<META charset="utf8" />
<title>Chrome Extensions Probe - evi1m0</title>
<script src="http://cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
<style>
div#test > div , div#plugins{
margin: -10px;
}
div#test {
margin-bottom: -15px;
}
div#plugins > ul {
margin-top: -10px;
}
</style>
</head>
<body>
<h1>Chrome installed extensions / plugins</h1>
<h2 id="loading">Loading...</h2>
<hr><br>
<div id="test">
</div>
<br>
<div id="plugins">
</div>
<script>
(function (){
function testing(id, name, war, curl){
var urlrule = 'chrome-extension://' + id + '/';
for (let w in war){
if(war[w].startsWith('/')) {
war[w] = war[w].replace('/', '');
}
if (war[w] == '*') {
url = urlrule + 'manifest.json';
} else {
url = urlrule + war[w];
}
$('body').append('');
var tmp = document.createElement('script');
tmp.src = url;
tmp.setAttribute('class', id);
tmp.onerror = function(){
$('.'+id).remove();
}
tmp.onload = function(){
if ($('#'+id).length < 1){
var atmp = document.createElement('div');
atmp.setAttribute('id', id)
atmp.innerHTML = `
<ul>
<li><b>`+name+`</b> (<a href=`+curl+`>`+curl+`</a>)</li>
</url>`;
document.getElementById('test').appendChild(atmp);
}
}
document.getElementById('test').appendChild(tmp);
}
}
// json data parse
$.get("ext1000up.json" + "?_=" + new Date().valueOf(), function(ext){
for (let n in ext.data) {
var id = ext.data[n].id;
var name = ext.data[n].name;
var war = ext.data[n].web_accessible_resources;
var curl = ext.data[n].url;
testing(id, name, war, curl);
}
$('#loading').remove();
})
for(let n=0; n< navigator.plugins.length; n++){
var pluginsobj = navigator.plugins[n];
$('#plugins').append(`
<ul>
<li><b>`+pluginsobj.name+`</b>, `+pluginsobj.filename+`, `+pluginsobj.description+`</li>
</ul>`);
}
})()
</script>
</body>
</html>