Загрузка...

Funny
Load button (update for new menu)

Thread in Extentions created by modafinil Sep 26, 2025. 311 views

  1. modafinil
    Теперь бабло еще круче крутится как настоящее только я чето не смог с помощью чатика гпт реализовать чтоб крутило и основной балик нормально, просто нажмите на баланс и пойдет :catdance:

    Написан для таперманки
    Code
    // ==UserScript==
    // @name Кнопка бабло
    // @namespace https://lolz.live/
    // @version 1.5
    // @description бабло
    // @author rasez
    // @match https://lolz.live/*
    // @grant none
    // ==/UserScript==

    (function() {
    'use strict';

    function qs(sel, ctx = document) { return ctx.querySelector(sel); }
    function qsa(sel, ctx = document) { return [...ctx.querySelectorAll(sel)]; }

    // Форматирование числа с пробелами
    function formatNumber(num) {
    return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ");
    }

    // ====== Кнопка ======
    function addCustomButton() {
    const container = qs('.manageItems');
    if (!container) return;
    if (qs('.manageItem[data-custom="1"]')) return;

    const btn = document.createElement('a');
    btn.className = 'manageItem';
    btn.dataset.custom = '1';
    btn.href = 'javascript:;';
    btn.textContent = 'кнопка бабло';

    btn.addEventListener('click', () => {
    const balanceBlock = qs('.balanceLabel.balanceAmount');
    if (balanceBlock) startBalanceGrowth(balanceBlock.querySelector('.balanceValue'));
    });

    container.appendChild(btn);
    }

    new MutationObserver((mutations, obs) => {
    if (qs('.manageItems')) {
    addCustomButton();
    obs.disconnect();
    }
    }).observe(document, { childList: true, subtree: true });

    // ====== Рост баланса ======
    function startBalanceGrowth(span) {
    // Начинаем с нуля
    let current = 0;

    function step() {
    // Рандомный шаг 200-1000
    const increment = Math.floor(Math.random() * 801) + 200;
    current += increment;

    // Обновляем текст с пробелами
    span.textContent = formatNumber(current);

    // Быстро, но не мгновенно
    const delay = Math.floor(Math.random() * 70) + 80;
    setTimeout(step, delay);
    }

    step();
    }

    // ====== Обработчик клика по балансу ======
    function initBalanceClick() {
    const balanceBlocks = qsa('.balanceLabel.balanceAmount, .balanceValue');
    balanceBlocks.forEach(block => {
    block.style.cursor = 'pointer';
    block.title = 'Кликни для роста баланса';

    block.addEventListener('click', () => {
    let span = block.classList.contains('balanceValue') ? block : block.querySelector('.balanceValue');
    if (span) startBalanceGrowth(span);
    });
    });
    }

    new MutationObserver((mutations, obs) => {
    if (qs('.balanceLabel.balanceAmount, .balanceValue')) {
    initBalanceClick();
    obs.disconnect();
    }
    }).observe(document, { childList: true, subtree: true });

    // ====== Стиль кнопки ======
    const style = document.createElement('style');
    style.textContent = `
    .manageItem[data-custom="1"] {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200%;
    padding: 12px 20px;
    border-radius: 10px;
    background-color: #2d2d2d;
    color: #eee;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 6px 0;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    .manageItem[data-custom="1"]:hover {
    background-color: #37D38D;
    color: #228e5d;
    transform: scale(1.02);
    }
    .balanceLabel.balanceAmount, .balanceValue {
    cursor: pointer;
    }
    `;
    document.head.appendChild(style);

    })();

    [IMG]
    UPD: при нажатии на свой балик у авы тоже крутит тепреь [IMG]
     
    This article was useful for you?
    You can thank the author of the topic by transferring funds to your balance
    Thank the author
  2. 0x01
    0x01 Oct 3, 2025
    LOLZHelper FIX - Free extension for the forum
    1,344 Feb 6, 2019
    [IMG]
    бро теперь буду выебываться в школе лавехой чтоб одноклассницы завидывали
     
Loading...