Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name idk really
- // @namespace http://tampermonkey.net/
- // @require https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js
- // @version 0.1
- // @description try to take over the world!
- // @author Rage
- // @match https://mope.io/*
- // @match https://beta.mope.io/*
- // @grant none
- // ==/UserScript==
- let breakPoint = false;
- let axd;
- let check = false;
- let doX = false;
- let work = false;
- let lastSent = Date.now();
- let $ = window.jQuery; // globally add jQuery
- //RARE SKINS TO BREAK ON
- let rare = [
- 'http://beta.mogffgde.io/skins/eagle/1/',
- 'http://beta.mrrgfope.io/skins/toucan/5/',
- ];
- //SHOW MENU
- function a() {
- if(doX){
- return;
- };
- document.getElementById("startMenuWrapper").style.display = "inline-block";
- document.getElementById("startButton").click();
- check = true;
- };
- setInterval(function(){
- if(!work) return;
- a();
- },25000);
- //HIDE MENU
- function b() {
- document.getElementById("startMenuWrapper").style.display = "none";
- };
- let old = CanvasRenderingContext2D.prototype.drawImage;
- CanvasRenderingContext2D.prototype.drawImage = function(img, x, y) {
- old.apply(this, arguments);
- if (img.src) {
- if(!check) return;
- //console.log(img.src);
- for (let i in rare) {
- if (img.src.includes(rare[i])) {
- console.log(img.src);
- doX = true;
- //Game is drawinga a rare animal - Ladies and Gentlemen: We got him!!
- console.log("Animal has apperared:" + img.src);
- }
- }
- };
- };
- //KEYPRESSES
- document.addEventListener('keydown', function(e) {
- var key = e.keyCode || e.which;
- switch (key) {
- case 65:
- console.log("start");
- work = !work;
- break
- case 109:
- doX = false;
- break
- }
- });
- let _ws = WebSocket.prototype.send;
- WebSocket.prototype.send = function(data) {
- let paket = new DataView(arguments[0]);
- if(paket.byteLength == 7){
- lastSent = Date.now();
- }
- _ws.apply(this, arguments); //send whatever we need
- };
- setInterval(function(){
- if(Date.now() - lastSent > 5000){
- //5s without move packet -- assuming we are on menu
- doX = false;
- };
- },25000)
- (function () {
- var log = console.log;
- console.log = function () {
- log.call(this, 'Animal choice appeared!');
- log.apply(this, Array.prototype.slice.call(arguments));
- };
- }());
- /*
- http://beta.mope.fgfgdio/skins/eagle/1/
- http://beta.mope.iofgdfg/skins/toucan/5/
- */
Advertisement
Add Comment
Please, Sign In to add comment