Greasy Fork

Stratums.io Chat Filter Bypass

Bypasses the chat filter of stratums.io so you can say things like class, bypass, trapezoid, grape, cucumber, etc. without getting asterisks in the middle.

目前为 2022-06-26 提交的版本。查看 最新版本

// ==UserScript==
// @name         Stratums.io Chat Filter Bypass
// @namespace    none
// @version      1.1
// @description  Bypasses the chat filter of stratums.io so you can say things like class, bypass, trapezoid, grape, cucumber, etc. without getting asterisks in the middle.
// @author       i30cps
// @match        *://stratums.io/*
// @license MIT
// @grant        none
// ==/UserScript==

var replacer = ['acyoepxusnACEOXKHMBDTI', 'асуоерхᴜꜱꪀАСЕОХКНМВᗪТI'];
var chat;
document.addEventListener('keydown', (e) => {
    if (!chat) {
        if (document.activeElement.placeholder == 'Enter Message') chat = document.activeElement;
    }
    else {
        for(let i = 0; i < replacer[0].length; i++){
            chat.value = chat.value.replaceAll(replacer[0].charAt(i), replacer[1].charAt(i));
        }
    }
})