-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.js
More file actions
46 lines (46 loc) · 1.07 KB
/
bootstrap.js
File metadata and controls
46 lines (46 loc) · 1.07 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
'use strict';
if (!AGB) {
var AGB = {};
}
AGB.Config = {
id : "",
beta : 0,
version : "",
pathSkin : ""
};
AGB.Core = {
Log : function(text, multiplier) {
if (AGB.Config.beta || multiplier) {
window.console.log("AntiGameOriginX: " + text);
}
},
setTimeout : function(callback, delay) {
return window.setTimeout(callback, delay);
},
clearTimeout : function(timerId) {
if (timerId) {
window.clearTimeout(timerId);
timerId = null;
}
},
resourceFile : function(url) {
var xhr;
if (url) {
try {
xhr = new XMLHttpRequest;
xhr.open("GET", chrome.extension.getURL(url), false);
xhr.overrideMimeType("text/plain");
xhr.send(null);
return xhr.responseText || "";
} catch (e) {
return "";
}
}
return "";
}
};
window.setTimeout(function() {
if (AGB.Manager) {
AGB.Manager.Start();
}
}, 1000);