Skip to content

Commit 519d963

Browse files
authored
#160 #142 #122 #110 fixed bug and improvements
1 parent fa41596 commit 519d963

File tree

12 files changed

+3178
-684
lines changed

12 files changed

+3178
-684
lines changed

Chrome-Extension/WhatsApp Monitor/css/font-awesome.css

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Chrome-Extension/WhatsApp Monitor/css/itel.css

+928
Large diffs are not rendered by default.

Chrome-Extension/WhatsApp Monitor/inject_wp.js

+426
Large diffs are not rendered by default.

Chrome-Extension/WhatsApp Monitor/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function save(user,t1,t2,t){
99
user=user.replace(/[^a-zA-Z0-9]/g, "")
1010
curd=curd.replace(/[^a-zA-Z0-9]/g, "")
1111

12-
const surl='https://whatsappanalysis.in/save/'+user+'/'+curd+'/'+t1+'/'+t2+'/'+t
12+
const surl='https://wpmonitor.tech/save/'+user+'/'+curd+'/'+t1+'/'+t2+'/'+t
1313
var xhr = new XMLHttpRequest();
1414
xhr.open("GET",surl);
1515
xhr.send()
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
{
2-
3-
4-
"manifest_version": 2,
2+
"manifest_version": 3,
53
"name": "Online Monitor",
64
"description": "Online Monitor @http://github.com/rizwansoaib",
7-
"version": "2.7",
5+
"version": "2.8",
86
"author": "Rizwan Ahmad",
9-
7+
8+
9+
"action": {
10+
"default_title": "Start WhatsApp Online Monitor",
11+
"default_popup": "popup.html"
12+
},
13+
1014

1115
"icons": {
1216

1317
"64": "images/icons/64.png",
1418
"128": "images/icons/128.png"
1519
},
1620

17-
"web_accessible_resources": [
18-
"*.js",
19-
"*.mp3"
20-
21-
],
21+
"web_accessible_resources": [{
22+
"resources": ["*.js","*.mp3"],
23+
"matches": ["<all_urls>"]
24+
}],
2225

2326
"content_scripts": [
2427
{
2528
"matches": ["https://web.whatsapp.com/*"],
26-
"js": ["main.js"],
27-
"run_at": "document_start"
29+
"js": ["start.js"],
30+
"run_at": "document_end"
2831
}
2932
],
33+
34+
"permissions": [
35+
"scripting",
36+
"storage",
37+
"activeTab"
38+
],
39+
40+
41+
"host_permissions": [
42+
"https://web.whatsapp.com/*","https://notify.run/*","https://wpmonitor.tech/*"
43+
]
3044

31-
32-
33-
"permissions": [
34-
"activeTab","storage","https://web.whatsapp.com/*","https://notify.run/*","https://whatsappanalysis.in/*"
35-
],
36-
37-
38-
39-
"browser_action": {
40-
"default_popup": "popup.html"
41-
42-
}
43-
44-
45-
}
45+
}

Chrome-Extension/WhatsApp Monitor/online.js

+49-14
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,64 @@
1+
var nno=""
2+
var nkey;
3+
chrome.storage.local.get('nno', function (myresult) {
4+
nno = myresult.nno;
5+
console.log("nno val in online.js",nno);
6+
if(nno==2){
7+
8+
var mnkey=""
9+
chrome.storage.local.get('mnkey', function (result2) {
10+
mnkey = result2.mnkey;
11+
console.log("mnkey val from online.js",mnkey,typeof(mnkey))
12+
13+
if(mnkey != "undefined"){
14+
alert("Subcribe any Device for Notification\n"+mnkey)
15+
nkey=mnkey;
16+
}
17+
18+
19+
});
20+
21+
22+
}
23+
24+
});
125

2-
var nkey=""
3-
chrome.storage.local.get('nkey', function (result2) {
4-
nkey = result2.nkey;
5-
if(nkey!="")
6-
alert("Subcribe any Device for Notification\nhttps://notify.run/"+nkey)
726

27+
console.log("nno val from online.js",nno);
28+
29+
30+
pso=""
31+
chrome.storage.local.get('pso', function (result3) {
32+
pso = result3.pso;
33+
34+
835

936
});
1037

1138

39+
console.log("pso val from online.js",pso);
40+
41+
42+
43+
44+
45+
46+
47+
48+
49+
50+
51+
52+
1253

1354

1455

1556
function onotif(user) {
16-
if(nkey==null||nkey==undefined||nkey=="")
57+
if(nkey==null||nkey==undefined||nkey==""||nkey=="undefined")
1758
return
1859
else{
1960
var xhr = new XMLHttpRequest();
20-
xhr.open("POST", "https://notify.run/"+nkey,true);
61+
xhr.open("POST", nkey,true);
2162
xhr.send("📱WhatsApp Monitor: "+user+" is Online")
2263

2364
}
@@ -33,7 +74,7 @@ function save(user,t1,t2,t){
3374
user=user.replace(/[^a-zA-Z0-9]/g, "")
3475
curd=curd.replace(/[^a-zA-Z0-9]/g, "")
3576

36-
const surl='https://whatsappanalysis.in/save/'+user+'/'+curd+'/'+t1+'/'+t2+'/'+t
77+
const surl='https://wpmonitor.tech/save/'+user+'/'+curd+'/'+t1+'/'+t2+'/'+t
3778
var xhr = new XMLHttpRequest();
3879
xhr.open("GET",surl);
3980
xhr.send()
@@ -42,13 +83,7 @@ function save(user,t1,t2,t){
4283

4384

4485

45-
pso=""
46-
chrome.storage.local.get('pso', function (result3) {
47-
pso = result3.pso;
4886

49-
50-
51-
});
5287

5388

5489

0 commit comments

Comments
 (0)