forked from IceHacks/survivio-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack_override.js
More file actions
146 lines (121 loc) · 4.3 KB
/
webpack_override.js
File metadata and controls
146 lines (121 loc) · 4.3 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
(function webpack_inject(){
window.isset = function(v) {
return typeof v !== "undefined" && v !== null && v !== "" ? true : false;
}
window.obfuscate = {
"mainModule": "aa",
"init": "o",
"free": "n",
"update": "m",
"render": "Wt",
"sendMessage": "ta",
"processGameUpdate": "Gt",
"EmoteManager": "Ct",
"camera": "se",
"targetZoom": "I",
"activePlayer": "Ft",
"input": "Ue",
"keyPressed": "fe",
"mousePressed": "Se",
"mouseDown": "xe",
"smokeBarn": false,
"smokePool": "e",
"map": "ot",
"obstaclePool": "ye",
"buildingPool": "Ot",
"pool": "Be",
"playerBarn": "nt",
"playerPool": "Ie",
"playerInfo": "oa",
"activeId": "Lt",
"objectCreator": "Bt",
"netData": "ne",
"pieTimer": "Mt",
"lootBarn": "St",
"closestLoot": "ia",
"lootPool": "At",
"localData": "le",
"cheatVersion": "0.30.0"
};
var checkVersion = function () {
var link = "https://raw.githubusercontent.com/Kalaborative/survivio-plus/master/manifest.json";
fetch(link)
.then( response => response.json())
.then( (jsonData) => {
if( isset(jsonData.version) && jsonData.version !== obfuscate.cheatVersion) {
alert("Please update your extension for the best results!");
}
});
}
checkVersion();
// window.freestar.newAdSlots = function(slots) {
// return slots;
// }
// window.freestar.deleteAdSlots = function(slots) {
// return slots;
// }
window.webpackJsonp([0], {
"webpack_inject": function (wrapper, exports, getModule) {
var mainModule = getModule("9b5f96fd")[obfuscate.mainModule];
// console.log(mainModule);
// init
var gameInitBase = mainModule.prototype[obfuscate.init];
mainModule.prototype[obfuscate.init] = function(){
gameInitBase.apply(this, arguments);
window.gameFunctions.gameInit.call(this);
};
// free
var gameFreeBase = mainModule.prototype[obfuscate.free];
// console.log(gameFreeBase);
mainModule.prototype[obfuscate.free] = function(){
gameFreeBase.apply(this, arguments);
window.gameFunctions.gameFree.call(this);
};
// update and override
var gameUpdateBase = mainModule.prototype[obfuscate.update];
mainModule.prototype[obfuscate.update] = function(){
if(!this.override)
window.gameFunctions.gameOverride.call(this);
gameUpdateBase.apply(this, arguments);
window.gameFunctions.gameUpdate.call(this);
};
// render
var gameRenderBase = mainModule.prototype[obfuscate.render];
mainModule.prototype[obfuscate.render] = function(){
gameRenderBase.apply(this, arguments);
window.gameFunctions.gameRender.call(this);
};
// sendMessage
var gameSendMessageBase = mainModule.prototype[obfuscate.sendMessage];
mainModule.prototype[obfuscate.sendMessage] = function(){
gameSendMessageBase.apply(this, arguments);
window.gameFunctions.gameSendMessage.apply(this, arguments);
};
// processGameUpdate
var gameSrocessGameUpdateBase = mainModule.prototype[obfuscate.processGameUpdate];
mainModule.prototype[obfuscate.processGameUpdate] = function(){
gameSrocessGameUpdateBase.apply(this, arguments);
window.gameFunctions.gameSrocessGameUpdate.apply(this, arguments);
};
// PING
var emoteModule = getModule("e5d16b4d");
// console.log(emoteModule);
// var someModule = getModule("c99e6613");
// console.log(someModule);
// var anotherModule = getModule('61fc98e9');
// console.log(anotherModule.prototype.connect);
// override
var emoteManagerUpdateBase = emoteModule[obfuscate.EmoteManager].prototype[obfuscate.update]; //emoteModule.EmoteManager.prototype.update
// console.log(emoteManagerUpdateBase);
emoteModule[obfuscate.EmoteManager].prototype[obfuscate.update] = function(){
if(!this.override)
window.gameFunctions.pingOverride.call(this);
emoteManagerUpdateBase.apply(this, arguments);
};
// DATA
window.gameVars.Game.GameData = getModule("989ad62a");
window.gameVars.Game.model = getModule("10899aea");
window.setInterval(function() { window.gameVars.Game.updateTeamTab = true; }, 1000);
}
}, ["webpack_inject"]);
})();