Universal uwuifyer

Press Alt + U to type uwu style on ANY website or chat room instantly!

Από την 18/08/2026. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Universal uwuifyer
// @namespace    http://tampermonkey.net
// @version      2.0
// @description  Press Alt + U to type uwu style on ANY website or chat room instantly!
// @author       You
// @license      MIT
// @match        *://*/*
// @include      *
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    // Core translation rules
    function uwuify(text) {
        return text
            .replace(/[lr]/g, 'w')
            .replace(/[LR]/g, 'W')
            .replace(/n([aeiou])/g, 'ny$1')
            .replace(/N([aeiou])/g, 'Ny$1')
            .replace(/N([AEIOU])/g, 'NY$1')
            .replace(/ove/g, 'uv');
    }

    // Force text injection regardless of security policies
    function forceInsert(targetElement, finalTxt) {
        targetElement.focus();
        
        if (targetElement.tagName === 'INPUT' || targetElement.tagName === 'TEXTAREA') {
            targetElement.value = finalTxt;
            targetElement.dispatchEvent(new Event('input', { bubbles: true }));
        } else {
            // Brute-force for contenteditables (Discord, Gemini, ChatGPT)
            const selection = window.getSelection();
            const range = document.createRange();
            range.selectNodeContents(targetElement);
            selection.removeAllRanges();
            selection.addRange(range);
            document.execCommand('insertText', false, finalTxt);
        }
    }

    // Global listener for the shortcut key
    document.addEventListener('keydown', function(e) {
        // Activates when pressing Alt + U
        if (e.altKey && e.key.toLowerCase() === 'u') {
            e.preventDefault();
            
            const activeInput = document.activeElement;
            if (!activeInput) return;

            // Prompt the user for input
            const userInput = prompt("Type your text here (It will be automatically uwuified):");
            if (userInput !== null && userInput.trim() !== "") {
                const uwuText = uwuify(userInput);
                forceInsert(activeInput, uwuText);
            }
        }
    }, true);
})();