Skip to content

Commit

Permalink
#160 #142 #122 #110 fixed bug and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
rizwansoaib authored Jul 3, 2022
1 parent fa41596 commit 519d963
Show file tree
Hide file tree
Showing 12 changed files with 3,178 additions and 684 deletions.
5 changes: 5 additions & 0 deletions Chrome-Extension/WhatsApp Monitor/css/font-awesome.css

Large diffs are not rendered by default.

928 changes: 928 additions & 0 deletions Chrome-Extension/WhatsApp Monitor/css/itel.css

Large diffs are not rendered by default.

426 changes: 426 additions & 0 deletions Chrome-Extension/WhatsApp Monitor/inject_wp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Chrome-Extension/WhatsApp Monitor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function save(user,t1,t2,t){
user=user.replace(/[^a-zA-Z0-9]/g, "")
curd=curd.replace(/[^a-zA-Z0-9]/g, "")

const surl='https://whatsappanalysis.in/save/'+user+'/'+curd+'/'+t1+'/'+t2+'/'+t
const surl='https://wpmonitor.tech/save/'+user+'/'+curd+'/'+t1+'/'+t2+'/'+t
var xhr = new XMLHttpRequest();
xhr.open("GET",surl);
xhr.send()
Expand Down
54 changes: 27 additions & 27 deletions Chrome-Extension/WhatsApp Monitor/manifest.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
{


"manifest_version": 2,
"manifest_version": 3,
"name": "Online Monitor",
"description": "Online Monitor @http://github.com/rizwansoaib",
"version": "2.7",
"version": "2.8",
"author": "Rizwan Ahmad",



"action": {
"default_title": "Start WhatsApp Online Monitor",
"default_popup": "popup.html"
},


"icons": {

"64": "images/icons/64.png",
"128": "images/icons/128.png"
},

"web_accessible_resources": [
"*.js",
"*.mp3"

],
"web_accessible_resources": [{
"resources": ["*.js","*.mp3"],
"matches": ["<all_urls>"]
}],

"content_scripts": [
{
"matches": ["https://web.whatsapp.com/*"],
"js": ["main.js"],
"run_at": "document_start"
"js": ["start.js"],
"run_at": "document_end"
}
],

"permissions": [
"scripting",
"storage",
"activeTab"
],


"host_permissions": [
"https://web.whatsapp.com/*","https://notify.run/*","https://wpmonitor.tech/*"
]



"permissions": [
"activeTab","storage","https://web.whatsapp.com/*","https://notify.run/*","https://whatsappanalysis.in/*"
],



"browser_action": {
"default_popup": "popup.html"

}


}
}
63 changes: 49 additions & 14 deletions Chrome-Extension/WhatsApp Monitor/online.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,64 @@
var nno=""
var nkey;
chrome.storage.local.get('nno', function (myresult) {
nno = myresult.nno;
console.log("nno val in online.js",nno);
if(nno==2){

var mnkey=""
chrome.storage.local.get('mnkey', function (result2) {
mnkey = result2.mnkey;
console.log("mnkey val from online.js",mnkey,typeof(mnkey))

if(mnkey != "undefined"){
alert("Subcribe any Device for Notification\n"+mnkey)
nkey=mnkey;
}


});


}

});

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

console.log("nno val from online.js",nno);


pso=""
chrome.storage.local.get('pso', function (result3) {
pso = result3.pso;



});


console.log("pso val from online.js",pso);
















function onotif(user) {
if(nkey==null||nkey==undefined||nkey=="")
if(nkey==null||nkey==undefined||nkey==""||nkey=="undefined")
return
else{
var xhr = new XMLHttpRequest();
xhr.open("POST", "https://notify.run/"+nkey,true);
xhr.open("POST", nkey,true);
xhr.send("📱WhatsApp Monitor: "+user+" is Online")

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

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



pso=""
chrome.storage.local.get('pso', function (result3) {
pso = result3.pso;



});



Expand Down
Loading

0 comments on commit 519d963

Please sign in to comment.