Skip to content

Instantly share code, notes, and snippets.

@StephanStanisic
Last active February 24, 2016 16:42
Show Gist options
  • Save StephanStanisic/be8a56322604753975f8 to your computer and use it in GitHub Desktop.
Save StephanStanisic/be8a56322604753975f8 to your computer and use it in GitHub Desktop.
A tlk.io spammer for tampermonkey
// ==UserScript==
// @name tlk.io spammer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Stephan Stanisic
// @match https://tlk.io/*
// ==/UserScript==
/* jshint -W097 */
'use strict';
// Your code here...
function spam(t){document.getElementById("message_body").value=t,document.getElementById("submit-button").click()}function btn(t,e,n,i,u){var d=document.createElement(n);return d.style.position="fixed",d.style.top=t+"px",d.style.right=e+"px",d.innerHTML=i,d.style.zIndex="99999999",d.onclick=u,document.body.appendChild(d),d}var i=1,timer,message,interval,input=btn(8,8,"textarea","",function(){});input.id="input",input.placeholder="msg";var input2=btn(62,8,"input","",function(){});input2.id="input2",input2.placeholder="speed (miliseconds)";var start=btn(94,8,"button","Spam",function(){message=document.getElementById("input").value,interval=Number(document.getElementById("input2").value),document.getElementById("input").disabled=!0,document.getElementById("input2").disabled=!0,timer=setInterval(function(){spam(message)},interval)}),stop=btn(94,75,"button","Stop",function(){clearInterval(timer),document.getElementById("input").disabled=!1,document.getElementById("input2").disabled=!1}),txt=btn(100,130,"span","©S",function(){window.open("http://stephanstanisic.nl")});

#Tlk.io spammer A simple and elegant tlk.io spammer
Features:

  • Simple design (none)
  • Custum interval in miliseconds
  • Markdown supported

##How to install

  1. Go to "http://tlk.io"
  2. Click your tampermonkey icon in the right upper corner
  3. Click "Add script"
  4. Select all the garbage in the code editor.
  5. Paste the contents of "spammer.js"
  6. Click the "save" icon.

##How to use

  • Enter your chatroom
  • 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