Guest User

Untitled

a guest
Dec 28th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         idk really
  3. // @namespace    http://tampermonkey.net/
  4. // @require        https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js
  5. // @version      0.1
  6. // @description  try to take over the world!
  7. // @author       Rage
  8. // @match        https://mope.io/*
  9. // @match        https://beta.mope.io/*
  10. // @grant        none
  11. // ==/UserScript==
  12.  
  13. let breakPoint = false;
  14. let axd;
  15. let check = false;
  16. let doX = false;
  17. let work = false;
  18. let lastSent = Date.now();
  19. let $ = window.jQuery; // globally add jQuery
  20.  
  21. //RARE SKINS TO BREAK ON
  22. let rare = [
  23.  
  24.     'http://beta.mogffgde.io/skins/eagle/1/',
  25.     'http://beta.mrrgfope.io/skins/toucan/5/',
  26.  
  27. ];
  28.  
  29. //SHOW MENU
  30. function a() {
  31.     if(doX){
  32.         return;
  33.     };
  34.  
  35.     document.getElementById("startMenuWrapper").style.display = "inline-block";
  36.     document.getElementById("startButton").click();
  37.     check = true;
  38.  
  39.  
  40. };
  41.  
  42. setInterval(function(){
  43.     if(!work) return;
  44.     a();
  45. },25000);
  46. //HIDE MENU
  47. function b() {
  48.     document.getElementById("startMenuWrapper").style.display = "none";
  49. };
  50.  
  51. let old = CanvasRenderingContext2D.prototype.drawImage;
  52. CanvasRenderingContext2D.prototype.drawImage = function(img, x, y) {
  53.  
  54.       old.apply(this, arguments);
  55.  
  56.     if (img.src) {
  57.         if(!check) return;
  58.         //console.log(img.src);
  59.         for (let i in rare) {
  60.             if (img.src.includes(rare[i])) {
  61.                 console.log(img.src);
  62.                 doX = true;
  63.                 //Game is drawinga a rare animal - Ladies and Gentlemen: We got him!!
  64.                 console.log("Animal has apperared:" + img.src);
  65.  
  66.             }
  67.  
  68.         }
  69.     };
  70. };
  71.  
  72. //KEYPRESSES
  73. document.addEventListener('keydown', function(e) {
  74.     var key = e.keyCode || e.which;
  75.     switch (key) {
  76.         case 65:
  77.             console.log("start");
  78.             work = !work;
  79.             break
  80.         case 109:
  81.             doX = false;
  82.             break
  83.     }
  84. });
  85.  
  86. let _ws = WebSocket.prototype.send;
  87.  
  88. WebSocket.prototype.send = function(data) {
  89.  
  90.     let paket = new DataView(arguments[0]);
  91.  
  92.     if(paket.byteLength == 7){
  93.         lastSent = Date.now();
  94.     }
  95.  
  96.     _ws.apply(this, arguments); //send whatever we need
  97. };
  98.  
  99. setInterval(function(){
  100.     if(Date.now() - lastSent > 5000){
  101.         //5s without move packet -- assuming we are on menu
  102.         doX = false;
  103.     };
  104. },25000)
  105.  
  106. (function () {
  107.   var log = console.log;
  108.  
  109.   console.log = function () {
  110.     log.call(this, 'Animal choice appeared!');
  111.  
  112.     log.apply(this, Array.prototype.slice.call(arguments));
  113.   };
  114. }());
  115.  
  116.  
  117. /*
  118.  
  119. http://beta.mope.fgfgdio/skins/eagle/1/
  120. http://beta.mope.iofgdfg/skins/toucan/5/
  121.  
  122. */
Advertisement
Add Comment
Please, Sign In to add comment