Filter Evader

;)

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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!)

/* eslint-disable */
// ==UserScript==
// @name         Filter Evader
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  ;)
// @author       KyoDaz
// @match        https://epicmafia.com/game/*
// @grant        none
// ==/UserScript==

//
//
//

// ==/UserScript==

(function() {
    'use strict';

    var interval = setInterval(() => {
        if(window.angular) {
            if(!angular.element(document.getElementById('speak')).scope()) {
                angular.reloadWithDebugInfo()
            }
            clearInterval(interval);
        }
    }, 100);

    const speak = $('#speak');
    const scope = angular.element('#speak').scope();
    if(!scope) return;

    const send_msg = scope.send_msg;

    const new_send_msg = function(e) {
        var words = $('#typebox').val().split(' ').map(word => {
            if(/^[a-zA-Z]+$/.test(word)) {
                return word.slice(0, 1) + '\u0000' + word.slice(1)
            }
            return word;
        });
        $('#typebox').val(words.join(' '));
        send_msg(e);
    }

    scope.send_msg = new_send_msg;

})();