-
Notifications
You must be signed in to change notification settings - Fork 0
/
loc.js
54 lines (37 loc) · 1.64 KB
/
loc.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
function mydata(){
var client = new ClientJS(); // Create A New Client Object
var OS = client.getOS(); // Get OS Version
var ver = client.getOSVersion(); // Get OS Version
var getbrow = client.getBrowser(); // Get Browser
var getbrowVer = client.getBrowserVersion(); // Get Browser Version
var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone; // Get Time Zone
// var timeZone = client.getTimeZone(); // Get Time Zone
var language = client.getLanguage(); // Get User Language
if(client.getOS() == "Linux"){
timeZone = "Not Found";
}
if(window.location.hash) {
var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character
} else {
var hash = ""
}
var check_brave = navigator.brave;
if(check_brave == undefined){
$.get("https://api.ipify.org",function(data){
var ip = data
$.ajax({
type: 'POST',
url: 'info.php',
data: {getip:ip,email:hash,osname:OS,Version:ver,BrowserName:getbrow,Verbrow:getbrowVer,time:timeZone,lan:language},
mimeType: 'text'
});
});
}else {
$.ajax({
type: 'POST',
url: 'info.php',
data: {getip:"Not Found",email:hash,osname:OS,Version:ver,BrowserName:getbrow,Verbrow:getbrowVer,time:timeZone,lan:language},
mimeType: 'text'
});
}
}