-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.js
66 lines (58 loc) · 1.68 KB
/
main.js
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
function addStyleString(str) {
var node = document.createElement('style');
node.innerHTML = str;
document.body.appendChild(node);
}
function addJavascriptString(str) {
var node = document.createElement('script');
node.innerHTML = str;
document.body.appendChild(node);
}
function createNewNode(type, str){
var node = document.createElement(type);
node.innerHTML = str;
return node;
}
function showIP(){
console.log('IP of the stranger is: ');
}
addStyleString('#videologo{ opacity: 0 !important; }');
document.onreadystatechange = function () {
if (document.readyState == "complete") {
//TODO: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/proxy/onRequest
const servers = "serverManager.setServerList(['front1'," +
" 'front2'," +
" 'front3'," +
" 'front4'," +
" 'front5'," +
" 'front7'," +
" 'front8'," +
" 'front9'," +
" 'front10'," +
" 'front11'," +
" 'front12'," +
" 'front13'," +
" 'front14'," +
" 'front15'," +
" 'front17'," +
" 'front18'," +
" 'front19'," +
" 'front20'," +
" 'front22'," +
" 'front23'," +
" 'front24'," +
" 'front25'," +
" 'front26'," +
" 'front27'," +
" 'front28'," +
" 'front29'," +
" 'front30'," +
" 'front31'," +
" 'front32'])";
addJavascriptString('antinudeServers = ["you-will-not-report.never"];');
addJavascriptString('serverManager.unsetKnownGood();');
addJavascriptString(servers);
addJavascriptString('serverManager.pickServer();');
showIP();
}
}