Brat Generator Quick Tool

Convert text into stylish brat-style output instantly

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Brat Generator Quick Tool
// @namespace    https://bratgenstudio.com
// @version      1.0
// @description  Convert text into stylish brat-style output instantly
// @author       YourName
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    // Create button
    const btn = document.createElement("button");
    btn.innerText = "Brat Generator";
    btn.style.position = "fixed";
    btn.style.bottom = "20px";
    btn.style.right = "20px";
    btn.style.zIndex = "9999";
    btn.style.padding = "10px 15px";
    btn.style.background = "#ff3ea5";
    btn.style.color = "#fff";
    btn.style.border = "none";
    btn.style.borderRadius = "8px";
    btn.style.cursor = "pointer";
    btn.style.fontSize = "14px";

    document.body.appendChild(btn);

    // Simple brat-style converter
    function bratStyle(text) {
        return text
            .split("")
            .map(char => char.toUpperCase())
            .join(" ✦ ");
    }

    // Click event
    btn.addEventListener("click", () => {
        let input = prompt("Enter text for Brat Style:");
        if (!input) return;

        let output = bratStyle(input);
        alert("Brat Style Output:\n\n" + output);
    });

})();