Skip to content

Instantly share code, notes, and snippets.

@mohitkh7
Created August 27, 2023 15:39
Show Gist options
  • Save mohitkh7/be54f4ad2fddbe3e08bab42719a8bebf to your computer and use it in GitHub Desktop.
Save mohitkh7/be54f4ad2fddbe3e08bab42719a8bebf to your computer and use it in GitHub Desktop.
Whatsapp Invisible Message Bomber
function sendMessage(){
const mainEl = document.querySelector('#main')
const textareaEl = mainEl.querySelector('div[contenteditable="true"]')
if(!textareaEl) {
throw new Error('There is no opened conversation')
}
random_length = Math.floor(Math.random() * 1000) + 1
textareaEl.focus()
document.execCommand('insertText', false, '‎ '.repeat(random_length))
textareaEl.dispatchEvent(new Event('change', { bubbles: true }))
setTimeout(() => {
(mainEl.querySelector('[data-testid="send"]') || mainEl.querySelector('[data-icon="send"]')).click()
}, 100)
}
setInterval(() => sendMessage(), 2000);
@mohitkh7
Copy link
Author

How to use it?

  • Open web whatsapp.
  • Open chat of scammers.
  • Open inspect element by using shortcut (ctrl + shift + I) or right click and than inspect.
  • Go to console section.
  • Copy Paste the above code and hit enter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment