Skip to content

Instantly share code, notes, and snippets.

@rootux
Last active October 18, 2020 01:06
Show Gist options
  • Select an option

  • Save rootux/47100588b30e3c8231d3 to your computer and use it in GitHub Desktop.

Select an option

Save rootux/47100588b30e3c8231d3 to your computer and use it in GitHub Desktop.

Revisions

  1. rootux revised this gist Jan 14, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion WhatsApp Web Send Random Heart
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    /*
    Simple WhatsApp Web Spam Bot written by Pablode. Use with love <3. Do not act reckless.
    Simple WhatsApp Web Spam Bot Originally written by Pablode. Modified by Gal Bracha.
    Use with love <3. Do not act reckless.
    ====================================================================================
    DISCLAIMER: I do not take any responsibility for any damage caused with this script.
    WhatsApp might be able identify script users if this becomes a problem. Do only use
  2. rootux renamed this gist Jan 14, 2016. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions WhatsApp Web Spambot → WhatsApp Web Send Random Heart
    Original file line number Diff line number Diff line change
    @@ -13,10 +13,10 @@ You may adjust the variables to get the emoji of your desire.
    ====================================================================================
    */
    /* User config */
    var msgcount = 3;
    var msgcount = 1;
    var delay = 250;
    var emojiTab = 3; /* There is no 0, from 1 to 6. */
    var emojiNumber = 8; /* No 0 either. */
    var emojiTab = 8; /* There is no 0, from 1 to 6. */
    var emojiNumber = Math.floor(Math.random() * 5) + 1 ; /* No 0 either. */
    /* The actual code */
    function getElementByXpath(path) { return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; }
    var winnniey = 0;
    @@ -44,4 +44,4 @@ function sendMessage() {
    }, delay);
    }, delay);
    }
    sendMessage();
    sendMessage();
  3. rootux revised this gist Jan 14, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions WhatsApp Web Spambot
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ You may adjust the variables to get the emoji of your desire.
    ====================================================================================
    */
    /* User config */
    var msgcount = 50;
    var msgcount = 3;
    var delay = 250;
    var emojiTab = 3; /* There is no 0, from 1 to 6. */
    var emojiNumber = 8; /* No 0 either. */
    @@ -25,7 +25,7 @@ function sendMessage() {
    var emojiButton = getElementByXpath('//*[@id="main"]/footer/div/button[1]');
    emojiButton.click();
    setTimeout(function () {
    var tab = getElementByXpath('//*[@id="main"]/footer/span/div/div[2]/button[' + emojiTab + ']');
    var tab = getElementByXpath('//*[@id="main"]/footer/span/div/div[1]/button[' + emojiTab + ']');
    tab.click();
    setTimeout(function () {
    var emoji = getElementByXpath('//*[@id="main"]/footer/span/div/span/div/div/span[' + emojiNumber + ']');
  4. @pablode pablode revised this gist May 2, 2015. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions WhatsApp Web Spambot
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,13 @@
    javascript:
    /*
    Simple WhatsApp Web Spam Bot written by Pablode. Use with love <3. Do not act reckless.
    ====================================================================================
    DISCLAIMER: I do not take any responsibility for any damage caused with this script.
    WhatsApp might be able identify script users if this becomes a problem. Do only use
    this if you are aware of the consquences.
    ====================================================================================
    Usage: Copy all of this script (Ctrl+A, Ctrl+C). Add a new Bookmark and paste (Ctrl+V)
    it into the "URL" section. You may name it after the amount of messages which are going
    to be sent. Visit WhatsApp Web, select your desired contact and click the Bookmark.
    Usage: Copy all of this script (Ctrl+A, Ctrl+C). Add a new Bookmark. In the URL section,
    write "javascript:" and paste (Ctrl+V) this script. Visit WhatsApp Web, select your
    desired contact and click the Bookmark.
    Press f5 to reload the page and stop the script in execution before it finishes.
    You may adjust the variables to get the emoji of your desire.
    ====================================================================================
  5. @pablode pablode revised this gist May 2, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion WhatsApp Web Spambot
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    javascript:
    /*
    Simple Whatsapp Spam Bot written by Pablode. Use with love <3. Do not act reckless.
    Simple WhatsApp Web Spam Bot written by Pablode. Use with love <3. Do not act reckless.
    ====================================================================================
    DISCLAIMER: I do not take any responsibility for any damage caused with this script.
    WhatsApp might be able identify script users if this becomes a problem. Do only use
  6. @pablode pablode revised this gist May 2, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion WhatsApp Web Spambot
    Original file line number Diff line number Diff line change
    @@ -45,4 +45,4 @@ function sendMessage() {
    }, delay);
    }, delay);
    }
    sendMessage();
    sendMessage();
  7. @pablode pablode created this gist May 2, 2015.
    48 changes: 48 additions & 0 deletions WhatsApp Web Spambot
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    javascript:
    /*
    Simple Whatsapp Spam Bot written by Pablode. Use with love <3. Do not act reckless.
    ====================================================================================
    DISCLAIMER: I do not take any responsibility for any damage caused with this script.
    WhatsApp might be able identify script users if this becomes a problem. Do only use
    this if you are aware of the consquences.
    ====================================================================================
    Usage: Copy all of this script (Ctrl+A, Ctrl+C). Add a new Bookmark and paste (Ctrl+V)
    it into the "URL" section. You may name it after the amount of messages which are going
    to be sent. Visit WhatsApp Web, select your desired contact and click the Bookmark.
    Press f5 to reload the page and stop the script in execution before it finishes.
    You may adjust the variables to get the emoji of your desire.
    ====================================================================================
    */
    /* User config */
    var msgcount = 50;
    var delay = 250;
    var emojiTab = 3; /* There is no 0, from 1 to 6. */
    var emojiNumber = 8; /* No 0 either. */
    /* The actual code */
    function getElementByXpath(path) { return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; }
    var winnniey = 0;
    function sendMessage() {
    setTimeout(function () {
    var emojiButton = getElementByXpath('//*[@id="main"]/footer/div/button[1]');
    emojiButton.click();
    setTimeout(function () {
    var tab = getElementByXpath('//*[@id="main"]/footer/span/div/div[2]/button[' + emojiTab + ']');
    tab.click();
    setTimeout(function () {
    var emoji = getElementByXpath('//*[@id="main"]/footer/span/div/span/div/div/span[' + emojiNumber + ']');
    emoji.click();
    setTimeout(function () {
    var sendButton = getElementByXpath('//*[@id="main"]/footer/div/button[2]');
    sendButton.click();
    setTimeout(function () {
    winnniey++;
    if (winnniey < msgcount) {
    sendMessage();
    }
    }, delay);
    }, delay);
    }, delay);
    }, delay);
    }, delay);
    }
    sendMessage();