Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Starve - kmccord1 + Chromium Script
- // @namespace http://tampermonkey.net/
- // @version WhoKnows
- // @description starve dieing from the inside :o
- // @author kmccord1 + Chromium
- // @match https://starve.io/
- // @grant none
- // ==/UserScript==
- (function() {
- // VARS
- var bootloop = setInterval(runbots,17);
- var bots = new Array();
- var botsconnecting = 0;
- // KEYS
- // FUNCTIONS
- function getCookie(name) {
- var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
- return v ? v[2] : null;
- }
- function setCookie(name, value, days) {
- var d = new Date;
- d.setTime(d.getTime() + 24*60*60*1000*days);
- document.cookie = name + "=" + value + ";path=/;expires=" + d.toGMTString();
- }
- function deleteCookie(name) { setCookie(name, '', -1); }
- function botconnect()
- {
- botsconnecting = 0;
- for (var i = 0; i < bots.length; i++)
- {
- if (bots[i].connected == 0)
- {
- botsconnecting++;
- }
- }
- if (botsconnecting == 0)
- {
- bots.push( new WebSocket("wss://" + Xm.ML[11].i + ":" + Xm.ML[11].p) );
- bots[bots.length - 1].connected = 0;
- bots[bots.length - 1].onopen = function()
- {
- bots[bots.length - 1].send(JSON.stringify(["Chromium-" + Math.round(Math.random()*1000),2120,1280,46,Math.round(Math.random()*50000000000000000000),getCookie("starve_token_id"),0,0,0,0,0,1,0,0,0,null]))
- bots[bots.length - 1].connected = 1;
- }
- }
- }
- function filterbots()
- {
- for (var i = 0; i < bots.length; i++)
- {
- if (bots[i].connected == 1 && bots[i].readyState != 1)
- {
- bots.splice(i,1);
- }
- }
- }
- function runbots()
- {
- filterbots();
- botconnect();
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement