BetterMM

A cool customizer. Key: NEW_BETTERMM

当前为 2023-04-21 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         BetterMM
// @namespace    http://tampermonkey.net/
// @version      1.5
// @description  A cool customizer. Key: NEW_BETTERMM
// @author       UNKKK
// @match        *://*.moomoo.io/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        GM_setValue
// @grant        GM_getValue
// @license      MIT
// ==/UserScript==

if (!GM_getValue('activatedBetterMooMooNew') || !GM_getValue('activatedBetterMooMooNew', "false")) {

var overlay = document.createElement('div');
overlay.style.backgroundColor = 'rgba(0, 0, 0, 0.5)';
overlay.style.position = 'fixed';
overlay.style.top = '0';
overlay.style.left = '0';
overlay.style.width = '100%';
overlay.style.height = '100%';
overlay.style.zIndex = '9999';
document.body.appendChild(overlay);

var message = document.createElement('div');
message.style.color = 'white';
message.style.textAlign = 'center';
message.style.fontSize = '24px';
message.style.marginBottom = '20px';
message.innerHTML = 'Please enter your key. Keys are case sensitive.';
overlay.appendChild(message);

var container = document.createElement('div');
container.style.display = 'flex';
container.style.justifyContent = 'center';
container.style.alignItems = 'center';
container.style.flexDirection = 'column';
overlay.appendChild(container);

var input = document.createElement('input');
input.type = 'text';
input.style.fontSize = '18px';
input.style.padding = '10px';
input.style.width = '500px';
input.style.borderRadius = '50px';
input.style.border = 'none';
input.style.outline = 'none';
input.style.backgroundColor = '#262626';
input.style.color = 'white';
input.style.fontFamily = 'Arial-Bold, sans-serif';
input.style.textAlign = 'center';
container.appendChild(input);

var button = document.createElement('button');
button.style.fontSize = '18px';
button.style.padding = '10px 20px';
button.style.marginTop = '10px';
button.style.borderRadius = '50px';
button.style.border = 'none';
button.style.outline = 'none';
button.style.backgroundColor = '#1c1c1c';
button.style.color = 'white';
button.style.fontFamily = 'Arial-Bold, sans-serif';
button.style.cursor = 'pointer';
button.innerHTML = 'Validate';
container.appendChild(button);

var messageHeight = message.offsetHeight;
var containerHeight = container.offsetHeight;
var totalHeight = messageHeight + containerHeight;
var marginTop = (window.innerHeight - totalHeight) / 2;
message.style.marginTop = marginTop + 'px';
container.style.marginTop = messageHeight + 'px'

button.addEventListener('click', function() {
	var key = input.value;
	if (key === "NEW_BETTERMM") {
	message.innerHTML = "Checking key.."
    setTimeout(function() {
        message.innerHTML = "Correct key!"
    }, 2000)
    setTimeout(function() {
        message.innerHTML = "Welcome to BetterMM v1.4! Reload your page to apply changes!"
        message.style.color = 'LIME'
    }, 4000)
    GM_setValue('activatedBetterMooMooNew', "true")
    setTimeout(function() {
        overlay.remove()
    }, 8000)
    } else if (key == null || key == "") {
        message.innerHTML = "Incorrect Key!"
        message.style.color = 'RED'
        setTimeout(function() {
        message.innerHTML = "Please enter your key. Keys are case sensitive."
        message.style.color = 'white'
        }, 500)
    } else {
        message.innerHTML = "Incorrect Key!"
        message.style.color = 'RED'
        setTimeout(function() {
        message.innerHTML = "Please enter your key. Keys are case sensitive."
        message.style.color = 'white'
        }, 500)
    }
});
} else {
document.getElementById('gameName').innerHTML = 'BetterMM';
document.getElementById('gameName').style.color = "RED";
document.getElementById('gameName').style.textShadow = "0 0";
document.getElementById('setupCard').style.backgroundColor = "#ff4141"
document.getElementById('setupCard').style.boxShadow = "0 0"
document.getElementById('promoImgHolder').remove()
document.getElementById('rightCardHolder').style.display = "inherit"
document.getElementById('guideCard').style.backgroundColor = "#ff4141"
document.getElementById('guideCard').style.boxShadow = "0 0"
document.getElementById('youtuberOf').remove()
document.getElementById('joinPartyButton').remove()
document.getElementById('partyButton').style.color = "#ff4141"
document.getElementById('nameInput').style.backgroundColor = "#ffa4a4"
document.getElementById('nameInput').placeholder = "BetterMM Name"
document.getElementById('enterGame').innerHTML = "Deploy"
document.getElementById('enterGame').style.backgroundColor = "#6e0000"
document.getElementById('enterGame').style.color = "#ff0000"
document.getElementById('linksContainer2').style.backgroundColor = "#ff3535"
document.getElementById('ot-sdk-btn-floating').remove()
// OUTSIDE \\

// INSIDE THE GAME \\
document.getElementById('ageText').style.color = 'YELLOW'
document.getElementById('ageBarBody').style.backgroundColor = 'ORANGE'
document.getElementById('foodDisplay').style.color = '#ff0000'
document.getElementById('woodDisplay').style.color = 'LIMEGREEN'
document.getElementById('stoneDisplay').style.color = 'GRAY'
document.getElementById('scoreDisplay').style.color = 'YELLOW'
}