BetterMM

A cool customizer. Key: NEW_BETTERMM

目前為 2023-04-21 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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'
}