XP
moomoo.io moomoo.io by 70406
Details
Author70406
LicenseCC零
Categorychrome-extension://clngdbkpkpeebahjckkjfobafhncgmne/edit.html?id=2
Created
Updated
Size52 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
MOOMOO.IO
Source code
Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link./* ==UserStyle==
@name moomoo.io
@version 20230606.22.22
@namespace ?
==/UserStyle== */
@-moz-document domain("moomoo.io") {
// ==UserScript
// @name New Userscript
// @namespace http://tampermonkey.net/==
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://greasyfork.org/zh-TW/scripts/by-site/moomoo.io
// @icon https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
// @grant none
// ==/UserScript==
讓changelook=假;
let instaChat="*;::;*" // 如果你想更改
let quadChat="Madmod V20" // 如果你想改變
$("#consentBlock").css( {
display: "none"
}
);
//$("#youtuberOf").css({display: "none"});
如果(改變外觀==真) {
$("#mapDisplay").css( {
背景: `url('https://imgur.com/PwNilyb.png')`
}
);
}
讓 _1536E=假; //https://i.imgur.com/fgFsQJp.png
//https://imgur.com/9K3aTqY.png
document.getElementById("moomooio_728x90_home").style.display="none";
$("#moomooio_728x90_home").parent().css( {
display: "none"
}
);
var聲音x; soundx="http://soundbible.com/grab.php?id=1948&type=wav" var sound=new Audio(soundx) 變種 boomx;
boomx="https://audio-vk4.ru/?mp3=%D0%9D%D0%B5%D0%B8%D0%B7%D0%B2%D0%B5%D1%81%D1%82%D0 %B5%D0%BD+%E2%80%93+Look+at+this+dude%2C+no+no+no+HAHAHAHAHAAHA+Meme" var boom=new Audio(boomx) 變種槍彈; gunshotx="https://audio-vk4.ru/?mp3=%D0%9D%D0%B5%D0%B8%D0%B7%D0%B2%D0%B5%D1%81%D1%82%D0 %B5%D0%BD+%E2%80%93+Look+at+this+dude%2C+no+no+no+HAHAHAHAHAAHA+Meme" var gunshot=新音頻(gunshotx) 變種我的死亡; mydeathx="http://soundbible.com/grab.php?id=2121&type=mp3" var mydeath=new Audio(mydeathx) 變種音樂=0;
const canvas=document.getElementById("gameCanvas");
const ctx=canvas.getContext("2d");
window.onbeforeunload=null;
$("#gameCanvas").css('cursor',
'url(http://cur.cursors-4u.net/cursors/cur-11/cur1029.cur), default');
讓鼠標X; 讓鼠標Y; 讓敵人X; 讓敵人Y; 讓使用=真; 讓寬度; 讓身高; 讓殺戮計數; 讓 showMap=1;
讓 whichMap=1;
設置間隔(()= > {
killcount=parseInt(document.getElementById("killCounter").innerText);
如果(殺戮計數 > 殺戮) {
boom.play(); //doNewSend(["ch", ["SAMmod"]);
}
殺戮=殺戮計數;
}
,
20);
/*setInterval(() => {
如果(showMap == 1){
如果(whichMap == 1){
$("#mapDisplay").css({背景: `url('https://imgur.com/PwNilyb.png')`});
whichMap = 2;
}別的{
$("#mapDisplay").css({背景: `url('https://imgur.com/oO4U3G1.png')`});
哪個地圖=1;
}
}別的{
$("#mapDisplay").css({背景: `rgba(0, 0, 0, 0.25)`})
}
},200);*/
設置間隔(()= > {
如果(音樂==1) {
聲音播放();
}
}
,
5000);
設置間隔(()= > {
如果(自動瞄準==真) {
doNewSend(["2",
[nearestEnemyAngle]]);
}
}
,
0);
設置間隔(()= > {
如果(hatToggle==1) {
如果(舊帽子!=普通帽子) {
帽子(普通帽子); console.log("試過。- 帽子")
}
if(oldAcc !=normalAcc) {
acc(normalAcc);
console.log("已試過 - Acc")
}
oldHat=normalHat;
oldAcc=normalAcc
}
}
,
25);
功能正常() {
帽子(普通帽子); acc(normalAcc);
}
功能目標(x,y) {
var cvs=document.getElementById("gameCanvas");
cvs.dispatchEvent(new MouseEvent("mousemove",
{
客戶X:x, 客戶Y:是
}
));
}
let coreURL=new URL(window.location.href);
window.sessionStorage.force=coreURL.searchParams.get("fc");
變種最近的敵人; var nearestEnemyAngle;
var isEnemyNear;
var instaMessage;
var instaSpeed=230;
var instaSpeedd=5;
主要變種; 次要的; 變種食物類型; 變種牆類型; 變種尖峰類型; 變種米爾類型; 變種我的類型; 變量提升類型; var 砲塔類型; var spawnpad類型; var autoaim=false;
變量刻度=1; var 舊帽子; var 舊地址; 變種敵人附近; 變種普通帽子; var normalAcc;
變種;
var msgpack5=msgpack;
變種boostDir;
var woodLeft;
var stoneLeft; var foodLeft;
var 殺死; 變金;
變量我的狀態; 讓我的玩家= {
編號:空, x:空, 是:空, 目錄:空, 對象:空, 武器:空, 氏族:空, 是領導者:空, 帽子:空, 附件:空, isSkull: 空
}
;
讓 healSpeed=100;
var healSpeedd=5;
var messageToggle=0;
var clanToggle=0;
讓 healToggle=1;
讓 hatToggle=1;
讓 hitToggle=0;
讓 hitTToggle=0;
讓 CrashToggle=0;
常量玩家= {}
;
讓 currentID=null; 文件.msgpack=msgpack;
函數 n() {
this.buffer=new Uint8Array([0]);
this.buffer.__proto__=new Uint8Array;
這個.type=0;
}
WebSocket.prototype.oldSend=WebSocket.prototype.send;
WebSocket.prototype.send=function(m) {
如果(!ws) {
文檔.ws=這個; ws=這個; 找到套接字(這個);
}
this.oldSend(m);
}
;
函數 socketFound(套接字) {
socket.addEventListener('消息',
函數(消息) {
處理消息(消息);
}
);
}
函數動畫(空間,機會) {
讓結果='';
讓字符;
如果(空格) {
characters='攻擊我並死';
}
別的 {
characters='NooBs';
}
如果(空格) {
characters=characters.padStart((30 - characters.length) / 2 + characters.length) 字符=characters.padEnd(30);
}
讓計數=0; for (let i=0;
i < characters.length;
i + + ) {
if(Math.floor(Math.random() * chance)==1 && characters.charAt(i) !="-" && count < 2 && characters.charAt(i) !=" ") {
結果 + =“_”; 計數 + +
}
別的 {
結果 + =characters.charAt(i);
}
}
返回結果;
}
函數句柄消息(m) {
讓 temp=msgpack5.decode(new Uint8Array(m.data));
讓數據; 如果(溫度。長度 > 1) {
數據=[溫度 [0],
...溫度 [1]];
如果(數據[1] instanceof數組) {
數據=數據;
}
}
別的 {
數據=溫度;
}
讓項目=數據[0]; 如果(!數據) {
返回
}
; 如果(項目===“io-init”) {
讓 cvs=document.getElementById("gameCanvas");
width=cvs.clientWidth;
height=cvs.clientHeight;
$(窗口).resize(函數() {
width=cvs.clientWidth;
height=cvs.clientHeight;
}
);
cvs.addEventListener("mousemove",
e= > {
mouseX=e.clientX;
mouseY=e.clientY;
}
);
}
if (item=="1" && myPlayer.id==null) {
myPlayer.id=數據[1];
}
如果(項目==“33”) {
附近的敵人=[];
對於(讓我=0;我<數據[1].長度/13;我 + + ) {
讓 playerInfo=data[1].slice(13*i,
13*i + 13);
如果(playerInfo[0]==myPlayer.id) {
myPlayer.x=playerInfo[1];
myPlayer.y=playerInfo[2];
myPlayer.dir=playerInfo[3];
myPlayer.object=playerInfo[4];
myPlayer.weapon=playerInfo[5];
myPlayer.clan=playerInfo[7];
myPlayer.isLeader=playerInfo[8];
myPlayer.hat=playerInfo[9];
myPlayer.accessory=playerInfo[10];
myPlayer.isSkull=playerInfo[11];
}
else if(playerInfo[7] !=myPlayer.clan || playerInfo[7]===null) {
enemiesNear.push(playerInfo);
enemyX=玩家信息[1];
enemyY=玩家信息[2];
}
}
}
isEnemyNear=false;
如果(附近的敵人) {
nearestEnemy=enemiesNear.sort((a,
b)= > dist(a,
myPlayer) - dist(b,
myPlayer))[0];
}
如果(最近的敵人) {
nearestEnemyAngle=Math.atan2(nearestEnemy[2]-myPlayer.y,
nearestEnemy[1]-myPlayer.x);
if(Math.sqrt(Math.pow((myPlayer.y-nearestEnemy[2]),
2) + Math.pow((myPlayer.x-nearestEnemy[1]),
2)) < 300) {
isEnemyNear=true;
如果(autoaim==false && myPlayer.hat !=7 && myPlayer.hat !=53) {
普通帽子=6;
如果(主要!=8) {
normalAcc=19
}
}
;
}
}
如果(isEnemyNear==false && autoaim==false) {
normalAcc=11;
如果(我的玩家.y < 2400) {
普通帽子=15;
}
else if (myPlayer.y > 6850 && myPlayer.y < 7550) {
普通帽子=31;
}
別的 {
普通帽子=12;
}
}
如果(!最近的敵人) {
nearestEnemyAngle=myPlayer.dir;
}
if(item=="h" && data[1]==myPlayer.id) {
如果(數據[2] < 100 && 數據[2] > 0 && healToggle==1) {
設置超時(()= > {
地點(食物類型,空);
}
,
治療速度);
}
}
更新();
}
函數 doNewSend(發件人) {
ws.send(new Uint8Array(Array.from(msgpack5.encode(sender))));
}
函數 acc(id) {
doNewSend(["13c",
[0,
0,
1]]);
doNewSend(["13c",
[0,
id,
1]]);
}
函數帽子(id) {
doNewSend(["13c",
[0,
id,
0]]);
}
function place(id,
angle=Math.atan2(mouseY - height / 2,
mouseX - width / 2)) {
doNewSend(["5",
[id,
null]]);
doNewSend(["c",
[1,
角度]]);
doNewSend(["c",
[0,
角度]]);
doNewSend(["5",
[myPlayer.weapon,
true]]);
}
函數 boostSpike() {
如果(boostDir==null) {
boostDir=nearestEnemyAngle;
}
放置(spikeType,boostDir + toRad(90)); 放置(spikeType,boostDir - toRad(90)); 地方(boostType,boostDir); doNewSend(["33",
[boostDir]]);
}
var repeater=function(key,
action,
interval) {
讓 _isKeyDown=假; 讓 _intervalId=未定義; 返回 {
開始(鍵碼) {
if(keycode==key && document.activeElement.id.toLowerCase() !=='chatbox') {
_isKeyDown=真; 如果(_intervalId===未定義) {
_intervalId=setInterval(()= > {
行動();
如果(!_isKeyDown) {
clearInterval(_intervalId);
_intervalId=未定義; console.log("claered");
}
}
, 間隔);
}
}
}
,
停止(鍵碼) {
if(keycode==key && document.activeElement.id.toLowerCase() !=='chatbox') {
_isKeyDown=假;
}
}
}
;
}
const healer=repeater(81,
()= > {
place(foodType)
}
,
0);
const boostPlacer=repeater(70,
()= > {
place(boostType)
}
,
0);
const spikePlacer=repeater(86,
()= > {
place(spikeType)
}
,
0);
const millPlacer=repeater(78,
()= > {
place(millType)
}
,
0);
const turretPlacer=repeater(72,
()= > {
place(turretType)
}
,
0);
常量 boostSpiker=中繼器 (71,
boostSpike,
0);
document.addEventListener('keydown',
(e)= > {
spikePlacer.start(e.keyCode);
healer.start(e.keyCode);
boostPlacer.start(e.keyCode);
boostSpiker.start(e.keyC...