Advertisement
chrahunt

someballs.user.js

Feb 28th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name          Some Ball Informer
  3. // @description   Tell off some balls
  4. // @include       http://maptest.newcompte.fr/groups/*
  5. // @include       http://maptest2.newcompte.fr/groups/*
  6. // @version       0.1
  7. // ==/UserScript==
  8.  
  9. function myScript()
  10. {
  11.     var time = 200;
  12.     var $button = $("<button />");
  13.     $button.text("Tell off Some Balls");
  14.     $button.click(function() {
  15.         tagpro.group.socket.emit("chat", "If you are a \"Some Ball\", leave the group, click the \"Log In\" button on the home page, log in, click the \"Profile\" butto");
  16.         setTimeout(function() {
  17.             tagpro.group.socket.emit("chat", "n on the home page, change your display name, and then come back to the group.");
  18.         }, time);
  19.     });
  20.     var $button2 = $("<button />");
  21.     $button2.text("TELL OFF SOME BALLS");
  22.     $button2.click(function() {
  23.         tagpro.group.socket.emit("chat", "IF YOU ARE A \"SOME BALL\", LEAVE THE GROUP, CLICK THE \"LOG IN\" BUTTON ON THE HOME PAGE, LOG IN, CLICK THE \"PROFILE\" BUTTO");
  24.         setTimeout(function() {
  25.             tagpro.group.socket.emit("chat", "N ON THE HOME PAGE, CHANGE YOUR DISPLAY NAME, AND THEN COME BACK TO THE GROUP.");
  26.         }, time);
  27.     });
  28.     var $button3 = $("<button />");
  29.     $button3.text("Tell off da some balls");
  30.     $button3.click(function() {
  31.         tagpro.group.socket.emit("chat", "If you is a \"Some Ball\", leave da group, click da \"Log In\" button on da home page, log in, click da \"Profile\" button");
  32.         setTimeout(function() {
  33.             tagpro.group.socket.emit("chat", "on da home page, change yo display name, and then come back to da group.");
  34.         }, time);
  35.     });
  36.    
  37.     $("#actions").append($button);
  38.     $("#actions").append($button2);
  39.     $("#actions").append($button3);
  40. }
  41. var source = "(" + myScript + ")()";
  42. var thescript = document.createElement('script');
  43. thescript.setAttribute("type", "application/javascript");
  44. thescript.textContent = source;
  45.  
  46. document.body.appendChild(thescript);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement