menu style aa

menu for me

Detta skript bör inte installeras direkt. Det är ett bibliotek för andra skript att inkludera med meta-direktivet // @require https://update.greasyfork.org/scripts/494389/1373024/menu%20style%20aa.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         menu style aa
// @description  menu for me
// @author       Blobby5785
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Inject CSS styles
    const cssStyles = `
        #modMenus {
            display: block;
            padding: 5px;
            background-color: rgba(0, 0, 0, 0.25);
            border-radius: 4px;
            position: absolute;
            left: 0;
            top: 0;
            min-width: 5px;
            max-width: 100px;
            min-height: 5px;
            max-height: 200px;
        }

        .menuItem {
            display: block;
            margin-bottom: 5px;
        }

        .menuItemLabel {
            color: #fff;
            font-size: 12px;
            cursor: pointer;
        }
    `;

    const styleElement = document.createElement('style');
    styleElement.textContent = cssStyles;
    document.head.appendChild(styleElement);

    const modMenus = document.createElement('div');
    modMenus.id = 'modMenus';
    document.body.appendChild(modMenus);

    const menuItems = document.createElement('div');
    menuItems.id = 'menuItems';
    modMenus.appendChild(menuItems);

    const menuItem = document.createElement('label');
    menuItem.classList.add('menuItem');

    const checkboxInput = document.createElement('input');
    checkboxInput.type = 'checkbox';
    checkboxInput.id = 'steal';
    menuItem.appendChild(checkboxInput);

    const menuItemLabel = document.createElement('span');
    menuItemLabel.classList.add('menuItemLabel');
    menuItemLabel.textContent = 'Steal';
    menuItem.appendChild(menuItemLabel);

    menuItems.appendChild(menuItem);
})();