Skip to content

Instantly share code, notes, and snippets.

@dimasmiftah
Last active March 14, 2024 18:11
Show Gist options
  • Star 36 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
  • Save dimasmiftah/9bb82acc26f6bfee73eac3cfd0f71d71 to your computer and use it in GitHub Desktop.
Save dimasmiftah/9bb82acc26f6bfee73eac3cfd0f71d71 to your computer and use it in GitHub Desktop.
whatsapp-spam | JavaScript code for spamming WhatsApp chat. https://vt.tiktok.com/ZSvHxrsX/
const input = document.querySelectorAll("[contenteditable='true']")[1];
function dispatch(input, message) {
var evt = new InputEvent('input', {
bubbles: true,
});
input.innerHTML = message;
input.dispatchEvent(evt);
document.querySelector('span[data-icon="send"]').click();
}
function lyricsPrank(text) {
text.split(' ').map((word) => dispatch(input, word));
}
function bombPrank(message, count) {
let i = 0;
while (i < count) {
dispatch(input, message);
i++;
}
}
// example lyricsPrank
// let text = 'Uh, summa-lumma, dooma-lumma, you assumin Im a human What I gotta do to get it through to you Im superhuman? Innovative and Im made of rubber So that anything you say is ricochetin off of me And itll glue to you and Im devastating, more than ever demonstrating How to give a motherfuckin audience A feeling like its levitating Never fading, and I know the haters are forever waiting For the day that they can say I fell off, theyll be celebrating Cause I know the way to get em motivated I make elevating music'
// lyricsPrank(text); // will send each word of the text
// example bombPrank
// bombPrank('i love you', 100) // will send 'i love you' 100 times
@hazim129
Copy link

adi pro

@noradham123
Copy link

kok bisa

@domoiki
Copy link

domoiki commented Oct 21, 2021

wahh ini tempat nongkrong yg bermanfaat. wkwkwk

@adiraden
Copy link

gimana caranya ganti sis chat?

@dimashuda
Copy link

gimana caranya ganti sis chat?

maksudnya isi chat kah?

lyricsPrank('kamu ganti tulisan ini, harus di dalam kutip')
bombPrank('tulisan ini bakal dikirm sepuluh kali, ganti tulisan dan angkanya sesuai keinginan', 10)

@takedowndmca
Copy link

@domoiki
Copy link

domoiki commented Nov 11, 2021

gimana caranya ganti sis chat?

Tinggal ganti aja gan tulisan di dalam tanda kurung ('isi Chat anda')

@alfianyuda31
Copy link

@dimasmiftah ini biar ada interval setiap message nya gimana ya bang caranya?

@domoiki
Copy link

domoiki commented Jan 8, 2022 via email

@alfianyuda31
Copy link

@domoiki gimana tu bang, masih belum paham saya javascript

@LtAkmal
Copy link

LtAkmal commented Mar 23, 2022

Bisa berguna untuk di Messanger/Instagram?

@ahmadshahfarhan
Copy link

mantap

@amirifansyah
Copy link

punten bang, ini ada tutor jalanin nya ga ya ? pengen nyoba tapi ga tau startnya dan saya ga paham itu ga ada set up nomer telepon.

@SangPutuOkaSusila01
Copy link

kk kok dia erornya gini ya ketika saya cobak praktein ?
VM1073:9 Uncaught TypeError: Cannot read properties of null (reading 'click')
at dispatch (:9:51)
at :13:33
at Array.map ()
at lyricsPrank (:13:19)
at :1:1

@Dighies
Copy link

Dighies commented Feb 23, 2023

gua lupa lagi cara makenya gimana, help

@abdansyakur354
Copy link

gimana caranya ganti sis chat?

maksudnya isi chat kah?

lyricsPrank('kamu ganti tulisan ini, harus di dalam kutip') bombPrank('tulisan ini bakal dikirm sepuluh kali, ganti tulisan dan angkanya sesuai keinginan', 10)

bang kok gak bisa

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