Hidden Daymap Game

Customize your profile picture and background on Daymap, plus quick soccer embed.

// ==UserScript==
// @name         Hidden Daymap Game
// @namespace    Hidden Daymap Game
// @version      1
// @description  Customize your profile picture and background on Daymap, plus quick soccer embed.
// @author       LiamGo
// @match        https://*.daymap.net/*
// ==/UserScript==

(function() {
    'use strict';

    // Add Soccer Embed Toggle Button & Container
    const soccerContainer = document.createElement('div');
    soccerContainer.id = 'soccerEmbedContainer';
    soccerContainer.style.cssText = 'width:100%; overflow:hidden; max-height:0; transition:max-height 0.4s ease;';
    const soccerFrame = document.createElement('iframe');
    soccerFrame.src = 'https://www.twoplayergames.org/gameframe/soccer-random';
    soccerFrame.style.cssText = 'width:100%; height:90vh; border:none;';
    soccerContainer.appendChild(soccerFrame);
    document.body.appendChild(soccerContainer);

    const soccerBtn = document.createElement('button');
    soccerBtn.id = 'soccerToggleBtn';
    soccerBtn.textContent = '▶️';
    soccerBtn.style.cssText = 'position:fixed; bottom:20px; right:20px; z-index:10000; padding:8px 12px; border:none; border-radius:4px; background:#28a745; color:#fff; cursor:pointer; font-size:16px;';
    soccerBtn.addEventListener('click', () => {
        if (soccerContainer.style.maxHeight === '0px' || !soccerContainer.style.maxHeight) {
            soccerContainer.style.maxHeight = '90vh';
            soccerBtn.textContent = '◀️';
        } else {
            soccerContainer.style.maxHeight = '0';
            soccerBtn.textContent = '▶️';
        }
    });
    document.body.appendChild(soccerBtn);
})();