-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwhatsapp_web.js
More file actions
30 lines (26 loc) · 832 Bytes
/
whatsapp_web.js
File metadata and controls
30 lines (26 loc) · 832 Bytes
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
/*
WhatsApp Web Blur Tool
Intended to blur contact and last message preview.
This was intended for use for cases where you need to share your WhatsApp Web tab during a video call.
v2022_08_19
*/
// polls for message preview div class and blurs all of them
let msgPreview = setInterval(() => {
const divs = document.getElementsByClassName("Hy9nV")
if (divs.length > 0) {
for(let i = 0; i < divs.length; i++){
divs[i].style.filter = "blur(5px)"
}
clearInterval(msgPreview)
}
}, 1000)
// polls for contact name div class and blurs all of them
let cntName = setInterval(() => {
const divs = document.getElementsByClassName("zoWT4")
if (divs.length > 0) {
for(let i = 0; i < divs.length; i++){
divs[i].style.filter = "blur(5px)"
}
clearInterval(cntName)
}
}, 1000)