Skip to content

Instantly share code, notes, and snippets.

@StephanStanisic
Last active March 11, 2023 18:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save StephanStanisic/dfa0e4a9000c74fd2920 to your computer and use it in GitHub Desktop.
Save StephanStanisic/dfa0e4a9000c74fd2920 to your computer and use it in GitHub Desktop.
Whatsapp spammer for tampermonkey: With GUI!
// ==UserScript==
// @name w8pp spammer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://web.whatsapp.com/
// @grant none
// ==/UserScript==
"use strict";function send(e){document.getElementsByClassName("pane-header pane-chat-header")[0].getElementsByClassName("emojitext ellipsify")[0].innerHTML==whitelist&&(document.getElementsByClassName("icon icon-smiley btn-emoji")[0].click(),document.getElementsByClassName("input")[1].innerHTML=e,document.getElementsByClassName("menu-item")[pagee].click(),document.getElementsByClassName("emojik emojiordered"+emoji)[0].click(),document.getElementsByClassName("icon btn-icon icon-send send-container")[0].click())}function addListeners(){document.getElementById("dyx").addEventListener("mousedown",mouseDown,!1),window.addEventListener("mouseup",mouseUp,!1)}function mouseUp(){window.removeEventListener("mousemove",divMove,!0)}function mouseDown(e){window.addEventListener("mousemove",divMove,!0)}function divMove(e){var t=document.getElementById("window");t.style.position="absolute",t.style.top=e.clientY-44+"px",t.style.left=e.clientX-16+"px"}var emoji="1200",pagee=11,whitelist="",timer,a=document.createElement("div");a.style.position="absolute",a.id="window",a.style.top="8px",a.style.right="8px",a.style.width="200px",a.style.background="#EEE",a.style.borderRadius="5px",a.style.zIndex="99999",document.body.appendChild(a);var a=document.createElement("div");a.id="conta",a.style.height="60px",a.style.position="relative",document.getElementById("window").appendChild(a);var a=document.createElement("div");a.id="msg",a.style.height="0px",a.style.position="absolute",a.style.top="60px",a.style.left="8px",document.getElementById("conta").appendChild(a);var a=document.createElement("input");a.style.position="absolute",a.id="lolzz",a.style.top="8px",a.style.right="8px",a.placeholder="Text",a.style.zIndex="99999",document.getElementById("conta").appendChild(a);var a=document.createElement("span");a.style.position="absolute",a.id="dyx",a.style.top="35px",a.style.right="175px",a.style.zIndex="99999",a.innerHTML="+",a.style.zIndex="99999",a.style.cursor="move",document.getElementById("conta").appendChild(a);var a=document.createElement("span");a.style.position="absolute",a.id="lolzz",a.style.top="11px",a.style.right="175px",a.style.zIndex="99999",a.innerHTML="📵",a.onclick=function(){var e="",t="",n="",l="",a="",o="",i="";5==pagee&&(e="selected"),6==pagee&&(t="selected"),7==pagee&&(n="selected"),8==pagee&&(l="selected"),9==pagee&&(a="selected"),10==pagee&&(o="selected"),11==pagee&&(i="selected"),document.getElementById("conta").style.height="130px",document.getElementById("msg").innerHTML="Emoji tab: <select id='selesct' style='-webkit-appearance: initial;appearance: initial;background-color: initial;border: initial;border-radius: initial;line-height: initial;font-size: initial;font-family: roboto,sans-serif; color: initial;outline: initial;width: initial;padding: initial;box-sizing: initial; border-bottom: initial;'><option value='5'"+e+">😀</option><option value='6'"+t+">🍀</option><option value='7'"+n+">🍴</option><option value='8'"+l+">⚽</option><option value='9'"+a+">🚘</option><option value='10'"+o+">☎</option><option value='11'"+i+">🔣</option></select><br />Emoji number: <input id='nullla' value='"+emoji+"' size='3'><br><div style='text-align:center'><a id='saveeee'>Save</a></div>",document.getElementById("saveeee").onclick=function(){emoji=document.getElementById("nullla").value,pagee=document.getElementById("selesct").options[document.getElementById("selesct").selectedIndex].value,document.getElementById("conta").style.height="60px",document.getElementById("conta").style.innerHTML="",document.getElementsByClassName("icon icon-smiley btn-emoji")[0].click(),document.getElementsByClassName("menu-item")[pagee].click(),document.getElementById("lolzz").innerHTML=document.getElementsByClassName("emojik emojiordered"+document.getElementById("nullla").value)[0].dataset.reactid.slice(-1)}},document.getElementById("conta").appendChild(a);var a=document.createElement("input");a.style.position="absolute",a.id="timers",a.placeholder="Interval",a.style.top="31px",a.style.height="16px",a.style.fontSize="10px",a.style.width="63px",a.style.right="100px",a.style.zIndex="99999",document.getElementById("conta").appendChild(a);var a=document.createElement("button");a.style.position="absolute",a.onclick=function(){document.getElementById("timers").style.background="white",document.getElementById("lolzz").style.background="white",document.getElementById("timers").readOnly=!1,document.getElementById("lolzz").readOnly=!1,clearInterval(timer),document.getElementById("timers").readOnly=!0,document.getElementById("lolzz").readOnly=!0,document.getElementById("timers").style.background="gray",document.getElementById("lolzz").style.background="gray",whitelist=document.getElementsByClassName("pane-header pane-chat-header")[0].getElementsByClassName("emojitext ellipsify")[0].innerHTML,timer=setInterval(function(){send(document.getElementById("lolzz").value)},Number(document.getElementById("timers").value))},a.innerHTML="SPAM ",a.style.top="33px",a.id="blahblah",a.style.right="8px",a.style.fontSize="15px",a.style.zIndex="99999",document.getElementById("conta").appendChild(a);var a=document.createElement("button");a.style.position="absolute",a.onclick=function(){clearInterval(timer),document.getElementById("timers").style.background="white",document.getElementById("lolzz").style.background="white",document.getElementById("timers").readOnly=!1,document.getElementById("lolzz").readOnly=!1},a.innerHTML="STOP ",a.style.top="33px",a.style.right="55px",a.style.fontSize="15px",a.style.zIndex="99999",document.getElementById("conta").appendChild(a),addListeners();

#WHATSAPP SPAMMER Version 1.1 | By Stephan Stanisic | Tampermonkey

This is a whatsapp spammer for tampermonkey Features:

  • Dragable
  • custom interval (delay) in miliseconds
  • Using the emoji keyboard
  • Custom emoji (click on the cellphone)
  • You cantswitch between users while spamming (handy if u have an group with your form teacher)

##How to install

  1. Go to "http://web.whatsapp.com"
  2. Follow the steps on screen
  3. Click your tampermonkey icon in the right upper corner
  4. Click "Add script"
  5. Select all the garbage in the code editor.
  6. Paste the contents of "spammer.js"
  7. Click the "save" icon.

##How to use

  • Enter web.whatsapp.com and click on the user you want to spam
  • Type your message in the msg box
  • type your desired speed (empty for max, 1000 = 1 second, 1 = 1/1000 of second)
  • Click spam!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment